void (@NotNull final AnActionEvent event) { final Presentation presentation = event.getPresentation(); final DataContext dataContext = event.getDataContext(); final Project project = CommonDataKeys.PROJECT.getData(dataContext); boolean hasContributors = hasContributors(dataContext); presentation.setEnabled((!requiresProject() || project != null) && hasContributors); presentation.setVisible(hasContributors); }