String formatRow(
      String firstColumn,
      Function<Integer, String> extractStat,
      String lastColumn
    ) {
      StringBuilder builder = new StringBuilder();
      int minZoom = minZoomWithData();
      int maxZoom = maxZoomWithData();
      List<String> layers = layers().stream()
        .sorted(Comparator.comparingInt(this::minZoomWithData))
        .toList();
      int maxLayerLength = Math.max(9, layers.stream().mapToInt(String::length).max().orElse(0));
      String cellFormat = "%1$5s";
      String layerFormat = "%1$" + maxLayerLength + "s";

      builder.append(layerFormat.formatted(firstColumn));
      for (int z = minZoom; z <= maxZoom; z++) {
        builder.append(cellFormat.formatted(extractStat.apply(z)));
        builder.append(' ');
      }
      builder.append(cellFormat.formatted(lastColumn));
      return builder.toString();
    }
Returns the minimum zoom a specific layer appears at in the tileset.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/TilesetSummaryStatistics.java