void (DebugProcessImpl process, boolean closedByUser) { if (!myAutoRestart || closedByUser || myClosedByUser.get()) { process.removeDebugProcessListener(this); notifyProcessDetached(); } else { process.reattach(process.getSession().getDebugEnvironment()); } }