docs: public static ValueMatcher makeValueMatcherGeneric(DimensionSelector selector, Predicate<String> predicate)
    {
      int cardinality = selector.getValueCardinality();
      if (cardinality >= 0 && selector.nameLookupPossibleInAdvance()) {
        return makeDictionaryEncodedValueMatcherGeneric(selector, predicate);
      } else {
        return makeNonDictionaryEncodedValueMatcherGeneric(selector, predicate);
      }
    }