void (@NotNull AnActionEvent e) { var project = e.getProject(); e.getPresentation().setEnabledAndVisible(project != null && LookupManager.getInstance(project).getActiveLookup() != null); super.update(e); }