title: Anonymous Inner class to lambda
body: <p>In Sonarcube I am getting an error to convert the following code to Lambda but facing difficulty.</p>
  
  <pre><code>private MeterFilter getDefualtConfig() {
          return new MeterFilter() {
              @Override
              public DistributionStatisticConfig configure(Meter.Id id, DistributionStatisticConfig config) {
                  return DistributionStatisticConfig.builder().percentilesHistogram(true).percentiles(0.95, 0.99, .5)
                          .build().merge(config);
              }
          };
      }
  </code></pre>