boolean (@NotNull Project project, @NotNull Editor editor, @NotNull final PsiFile file) { if (!(file instanceof PsiJavaFile)) { return false; } return GenerateSuperMethodCallHandler.canInsertSuper(editor, file) != null; }