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