boolean (@NotNull Editor editor, @NotNull IntentionAction makeSealedAction, @NotNull PsiIdentifier classIdentifier) { try { PsiFile containingFile = classIdentifier.getContainingFile(); ShowIntentionActionsHandler.chooseActionAndInvoke(containingFile, editor, makeSealedAction, makeSealedAction.getText()); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); return true; } catch (CommonRefactoringUtil.RefactoringErrorHintException e) { return false; } }