public boolean containsMetricCategory(final String name) {
    return metricCategories.containsKey(name.toUpperCase(Locale.ROOT));
  }
Return true if a category with that name is already registered

@param name the category name
@return true if a category with that name is already registered
metrics/core/src/main/java/org/hyperledger/besu/metrics/MetricCategoryRegistryImpl.java