void (@NotNull AnActionEvent e) { Project project = e.getProject(); RunDashboardRunConfigurationNode node = project == null ? null : RunDashboardActionUtils.getTarget(e); boolean enabled = node != null && node.getContent() != null; e.getPresentation().setEnabled(enabled); e.getPresentation().setVisible(enabled || !ActionPlaces.isPopupPlace(e.getPlace())); }