void (final @NotNull AnActionEvent e) { RunnerContentUi runnerContentUi = getRunnerUi(e); boolean enabled = false; if (runnerContentUi != null) { enabled = true; if (ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace())) { // In this case the action has to available in ActionPlaces.RUNNER_LAYOUT_BUTTON_TOOLBAR only enabled = !runnerContentUi.isMinimizeActionEnabled(); } } e.getPresentation().setEnabledAndVisible(enabled); }