default boolean isCategoryEnabled(final MetricCategory category) {
    return getEnabledCategories().stream()
        .map(MetricCategory::getName)
        .anyMatch(category.getName()::equals);
  }
Checks if a particular category of metrics is enabled.

@param category the category to check
@return true if the category is enabled, false otherwise
plugin-api/src/main/java/org/hyperledger/besu/plugin/services/MetricsSystem.java