void () { Project project = getProject(); if (project == null) { return; } LookupManager.hideActiveLookup(project); PsiDocumentManager.getInstance(project).commitAllDocuments(); FileEditorManagerEx.getInstanceEx(project).closeAllFiles(); EditorHistoryManager.getInstance(project).removeAllFiles(); }