code: public boolean isExcluded(long version) {
      return Arrays.binarySearch(inProgress, version) >= 0
        || Arrays.binarySearch(invalids, version) >= 0;
    }
docs: Returns true if the given version is present in one of the arrays of excluded versions (in-progress and
  invalid transactions).