boolean (@NotNull Project project, Editor editor, PsiFile file) { return BaseIntentionAction.canModify(file) && file instanceof PsiJavaFile && !CodeInsightWorkspaceSettings.getInstance(project).isOptimizeImportsOnTheFly(); }