private void addJsonMetricToPercolationIfMatching ( JsonMetric < ? extends Metric > jsonMetric , List < JsonMetric > percolationMetrics ) { if ( percolationFilter != null && percolationFilter . matches ( jsonMetric . name ( ) , jsonMetric . value ( ) ) ) { percolationMetrics . add ( jsonMetric ) ; } }
Add metric to list of matched percolation if needed