void (@NotNull final AnActionEvent e) { super.update(e); final Project project = getEventProject(e); final Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(project != null); }