public void cancel() {
    synchronized (myCommands) {
      while (!myCommands.isEmpty()) {
        Pair<DebugProcessImpl, DebuggerCommandImpl> pair = myCommands.remove(0);
        pair.getSecond().notifyCancelled();
      }
    }
  }
public void cancel()