boolean resetLocalHistory(DocumentReference reference,  PerClientLocalUndoRedoSnapshot snapshot) {
      CommandMerger currentMerger = myCurrentMerger;
      if (currentMerger != null && currentMerger.hasActions()) {
        return false;
      }

      if (!myMerger.resetLocalHistory(snapshot.getLocalCommandMergerSnapshot())) {
        return false;
      }
      myUndoStacksHolder.getStack(reference).resetTo(snapshot.getUndoStackSnapshot());
      myRedoStacksHolder.getStack(reference).resetTo(snapshot.getRedoStackSnapshot());

      myManager.myAdjustableUndoableActionsHolder.getStack(reference).resetTo(snapshot.getActionsHolderSnapshot());

      return true;
    }
boolean resetLocalHistory(DocumentReference reference,  PerClientLocalUndoRedoSnapshot snapshot)