@ApiStatus.Internal
  @ApiStatus.Experimental
  boolean resetLocalHistory(LocalCommandMergerSnapshot snapshot) {
    HashSet<DocumentReference> references = new HashSet<>();
    DocumentReference reference = snapshot.getDocumentReferences();
    if (reference != null) {
      references.add(reference);
    }

    reset(
      snapshot.getActions().toList(),
      references,
      new HashSet<>(),
      snapshot.getLastGroupId(),
      false,
      snapshot.getTransparent(),
      snapshot.getCommandName(),
      true,
      snapshot.getStateBefore(),
      snapshot.getStateAfter(),
      snapshot.getUndoConfirmationPolicy()
    );

    return true;
  }
@ApiStatus.Internal
  @ApiStatus.Experimental
  boolean resetLocalHistory(LocalCommandMergerSnapshot snapshot)