boolean () { if (!(getMigrationType() instanceof PsiDisjunctionType)) return false; for (PsiElement root : myRoots) { if (!(root instanceof PsiParameter parameter)) return true; PsiElement scope = parameter.getDeclarationScope(); if (!(scope instanceof PsiCatchSection)) return true; } return false; }