void (@NotNull AnActionEvent e, boolean running) { Presentation presentation = e.getPresentation(); if (running) { presentation.setText(ExecutionBundle.messagePointer("run.dashboard.rerun.action.name")); presentation.setDescription(ExecutionBundle.messagePointer("run.dashboard.rerun.action.description")); presentation.setIcon( ExperimentalUI.isNewUI() ? DefaultRunExecutor.getRunExecutorInstance().getRerunIcon() : AllIcons.Actions.Restart); } else { presentation.setText(ExecutionBundle.messagePointer("run.dashboard.run.action.name")); presentation.setDescription(ExecutionBundle.messagePointer("run.dashboard.run.action.description")); presentation.setIcon(AllIcons.Actions.Execute); } }