void (@NotNull AnActionEvent e, boolean running) { Presentation presentation = e.getPresentation(); if (running) { presentation.setText(ExecutionBundle.messagePointer("run.dashboard.restart.debugger.action.name")); presentation.setDescription(ExecutionBundle.messagePointer("run.dashboard.restart.debugger.action.description")); presentation.setIcon(AllIcons.Actions.RestartDebugger); } else { presentation.setText(ExecutionBundle.messagePointer("run.dashboard.debug.action.name")); presentation.setDescription(ExecutionBundle.messagePointer("run.dashboard.debug.action.description")); presentation.setIcon(AllIcons.Actions.StartDebugger); } }