void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiElement parent = element.getParent(); if (!(parent instanceof PsiParameter parameter)) { return; } final PsiElement grandParent = parameter.getParent(); if (!(grandParent instanceof PsiCatchSection catchSection)) { return; } if (removeTryCatch) { BlockUtils.unwrapTryBlock(catchSection.getTryStatement()); } else { catchSection.delete(); } }