DebuggerSession (RunContentDescriptor descriptor) { for (JavaDebugProcess process : XDebuggerManager.getInstance(myProject).getDebugProcesses(JavaDebugProcess.class)) { if (Comparing.equal(process.getProcessHandler(), descriptor.getProcessHandler())) { return process.getDebuggerSession(); } } return null; }