boolean (@NotNull Editor editor, @NotNull IntentionAction makeSealedAction, @NotNull PsiClass psiClass) { PsiIdentifier nameIdentifier = psiClass.getNameIdentifier(); if (nameIdentifier == null) return false; editor.getCaretModel().moveToOffset(nameIdentifier.getTextOffset()); return makeSealedAction.isAvailable(psiClass.getProject(), editor, nameIdentifier.getContainingFile()); }