code: public StreamCutReferenceRecord findStreamCutReferenceForSize(long size) {
          int beforeIndex = getGreatestLowerBound(this, size, StreamCutReferenceRecord::getRecordingSize);
          if (beforeIndex < 0) {
              return null;
          }
  
          return retentionRecords.get(beforeIndex);
      }
docs: Find retention record on or before the given size.
  @param size size
  @return reference record which is greatest lower bound for given size. It returns null if no such record exists in the set.