void (@NotNull AnActionEvent e) { XDebugSession session = DebuggerUIUtil.getSession(e); e.getPresentation().setEnabledAndVisible(session != null && session.getDebugProcess() instanceof JavaDebugProcess && !((XDebugSessionImpl)session).isReadOnly() && session.isSuspended()); }