docs: private Snapshot newSnapshot(SnapshotDescriptor descriptor, StorageLevel storageLevel) {
      if (storageLevel == StorageLevel.MEMORY) {
        return createMemorySnapshot(descriptor);
      } else {
        return createDiskSnapshot(descriptor);
      }
    }