mod_cluster/undertow/src/main/java/org/wildfly/mod_cluster/undertow/ModClusterUndertowDeploymentProcessor.java
private boolean isMetricEnabled(Class metricClass) {
        for (LoadMetric enabledMetric : enabledMetrics) {
            if (metricClass.isInstance(enabledMetric)) {
                return true;
            }
        }

        return false;
    }
private boolean isMetricEnabled(Class metricClass) {
        for (LoadMetric enabledMetric : enabledMetrics) {
            if (metricClass.isInstance(enabledMetric)) {
                return true;
            }
        }

        return false;
    }
private boolean isMetricEnabled ( Class metricClass ) { for ( LoadMetric enabledMetric : enabledMetrics ) { if ( metricClass . isInstance ( enabledMetric ) ) { return true ; } } return false ; }
Checks whether this {@link Class} is configured to be used.

@param metricClass Class to check whether it's configured to be used
@return true if any of the enabled metrics is enabled, false otherwise
Checks whether this { @link Class } is configured to be used .