void (@NotNull Project project, Editor editor, PsiFile file) { CodeInsightWorkspaceSettings.getInstance(project).setOptimizeImportsOnTheFly(true); SaveAndSyncHandler.getInstance().scheduleProjectSave(project, true); DaemonCodeAnalyzer.getInstance(project).restart(); }