public <T extends Enum<T> & MetricCategory> void addCategories(final Class<T> categoryEnum) {
    EnumSet.allOf(categoryEnum)
        .forEach(category -> metricCategories.put(category.name(), category));
  }
Add Metrics categories.

@param <T> the type parameter
@param categoryEnum the category enum
metrics/core/src/main/java/org/hyperledger/besu/metrics/MetricCategoryRegistryImpl.java