void (@NotNull final AnActionEvent event) { DebuggerContextImpl debuggerContext = DebuggerAction.getDebuggerContext(event.getDataContext()); if (getSelectedValues(event).isEmpty() || debuggerContext.getDebugProcess() == null) { event.getPresentation().setEnabledAndVisible(false); return; } event.getPresentation().setEnabledAndVisible(true); }