public void setActive(boolean active, @NotNull DebuggerManagerThreadImpl managerThread) {
    if (myIsActive == active) {
      return;
    }

    myIsActive = active;

    managerThread.schedule(new DebuggerCommandImpl() {
      @Override
      protected void action() {
        if (active) {
          doActivate();
        }
        else {
          doPause();
        }
      }
    });
  }
public void setActive(boolean active, @NotNull DebuggerManagerThreadImpl managerThread)