DebugProcessImpl (@NotNull AnActionEvent e) { XDebugSession session = DebuggerUIUtil.getSession(e); if (session != null) { XDebugProcess process = session.getDebugProcess(); if (process instanceof JavaDebugProcess) { return ((JavaDebugProcess)process).getDebuggerSession().getProcess(); } } return null; }