void (@NotNull AnActionEvent event) { final Presentation presentation = event.getPresentation(); final Project project = event.getProject(); presentation.setEnabled(project != null); presentation.setVisible(ActionPlaces.isMainMenuOrActionSearch(event.getPlace())); }