void (@NotNull AnActionEvent e) { Project project = e.getProject(); e.getPresentation().setEnabled(session != null && project != null && LookupManager.getInstance(project).getActiveLookup() == null); }