public void doUpdate(@NotNull AnActionEvent event, final Map<String, Object> _params) { try { { AbstractDebugSession debugSession = DebugActionsUtil.getDebugSession(event); event.getPresentation().setEnabled(debugSession != null && debugSession.isStepEnabled()); } } catch (Throwable t) { if (log.isErrorEnabled()) { log.error("User's action doUpdate method failed. Action:" + "StepOut", t); } this.disable(event.getPresentation()); } }