void (@NotNull ActionContext context, @NotNull PsiParameter catchParameter, @NotNull ModPsiUpdater updater) { PsiElement previousElement = deleteCatch(catchParameter); if (previousElement != null) { //move caret to previous catch section updater.moveTo(previousElement.getTextRange().getEndOffset()); } }