@Override
  public void add(long receivedVersion) {
    if (receivedVersion == previousVersion + 1) {
      previousVersion = receivedVersion;
      if (received != null) {
        consumeReceivedVersions();
      }
    } else if (receivedVersion == nextVersion - 1) {
      nextVersion = receivedVersion;
      if (received != null) {
        consumeReceivedVersions();
      }
    } else if (previousVersion < receivedVersion && receivedVersion < nextVersion) {
      addReceived(receivedVersion);
    }
  }
This subclass of RVVException is the original class that uses TreeSets to hold received versions.
It is now only used if the exception represents a large gap.
geode-core/src/main/java/org/apache/geode/internal/cache/versions/RVVExceptionT.java