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