public static boolean hasReferences(Collection<HStoreFile> files) {
    // TODO: make sure that we won't pass null here in the future.
    return files != null && files.stream().anyMatch(HStoreFile::isReference);
  }
Determines whether any files in the collection are references.
@param files The files.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreUtils.java