public static List<StatisticsFile> getStatisticsFiles(Table table, long snapshotId, String type) {
    List<StatisticsFile> statisticsFiles = table.statisticsFiles();
    if (statisticsFiles.isEmpty()) {
      return Collections.emptyList();
    }
    return statisticsFiles.stream()
        .filter(s -> s.blobMetadata().stream().anyMatch(b -> type.equals(b.type())))
        .collect(Collectors.groupingBy(StatisticsFile::snapshotId))
        .get(snapshotId);
  }
Get the statistics files that belong to the given snapshot.

@param table - Iceberg Table
@param snapshotId - the snapshot id
@param type - the type of the blob type
@return the list of statistics files
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/StatisticsFileUtil.java