void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; if (!LightEdit.owns(project) && DumbService.isDumb(project)) { DumbService.getInstance(project).showDumbModeNotificationForAction( ApplicationBundle.message("intentions.are.not.available.message"), ActionManager.getInstance().getId(this)); return; } Editor editor = getEditor(e.getDataContext(), project, false); if (editor == null) return; PsiFile psiFile = PsiUtilBase.getPsiFileInEditor(editor, project); if (psiFile == null) return; if (!ApplicationManager.getApplication().isUnitTestMode() && !editor.getContentComponent().isShowing()) return; getHandler().invoke(project, editor, psiFile, e.isFromContextMenu()); }