docs: @JsonIgnore
      public MetricFilter getFilter() {
          final StringMatchingStrategy stringMatchingStrategy = getUseRegexFilters() ?
                  REGEX_STRING_MATCHING_STRATEGY : (getUseSubstringMatching() ? SUBSTRING_MATCHING_STRATEGY : DEFAULT_STRING_MATCHING_STRATEGY);
  
          return (name, metric) -> {
              // Include the metric if its name is not excluded and its name is included
              // Where, by default, with no includes setting, all names are included.
              return !stringMatchingStrategy.containsMatch(getExcludes(), name) &&
                      (getIncludes().isEmpty() || stringMatchingStrategy.containsMatch(getIncludes(), name));
          };
      }