void (@NotNull AnActionEvent e) { Project project = e.getProject(); RunDashboardRunConfigurationNode node = project == null ? null : RunDashboardActionUtils.getTarget(e); boolean enabled = node != null && RunManager.getInstance(project).hasSettings(node.getConfigurationSettings()); Presentation presentation = e.getPresentation(); presentation.setEnabled(enabled); boolean popupPlace = ActionPlaces.isPopupPlace(e.getPlace()); presentation.setVisible(enabled || !popupPlace); if (popupPlace) { presentation.setText(getTemplatePresentation().getText() + "..."); } }