void (final @NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); // we always show it enabled even in DumbMode, // 99% chances there will be some editable run configuration inside // and we don't want to check heavy conditions here presentation.setEnabled(true); if (e.getData(RunToolbarPopupKt.getRUN_CONFIGURATION_KEY()) != null) { presentation.setText(ExecutionBundle.message("choose.run.popup.edit")); presentation.setDescription(ExecutionBundle.message("choose.run.popup.edit.description")); if (!ExperimentalUI.isNewUI()) { presentation.setIcon(AllIcons.Actions.EditSource); } } else if (ActionPlaces.RUN_CONFIGURATIONS_COMBOBOX.equals(e.getPlace())) { presentation.setText(ExecutionBundle.messagePointer("edit.configuration.action")); presentation.setDescription(presentation.getText()); } }