PyFrameAccessor (@NotNull ProcessHandler handler) { for (PyDebugProcess process : XDebuggerManager.getInstance(myProject).getDebugProcesses(PyDebugProcess.class)) { if (Comparing.equal(handler, process.getProcessHandler())) { return process; } } return null; }