void (@NotNull RemoteDebugger debugger) { // register successfully connected debugger synchronized (myDebuggersObject) { myDebuggers.add(debugger); } // notify `waitForConnect()` that we connected if (myDebuggerStatusHolder.onConnected()) { // add close listeners for the first accepted debugger debugger.addCloseListener(myCompositeListener); } else { // for consequent processes we should init them by ourselves myDebugProcess.init(); try { debugger.run(); } catch (PyDebuggerException e) { LOG.debug("Failed to `CMD_RUN` the recently connected Python debugger process"); } } }