docs: public static <T, U> DictionaryFeatureVectorGenerator<T, U> createFromDataWithThreshold(
        Collection<T> data, FeatureGenerator<T, U> generator, int occurrenceThreshold) {
      CountAccumulator<U> featureOccurrenceCounts = FeatureGenerators.getFeatureCounts(generator, data);
      IndexedList<U> features = new IndexedList<U>();
      features.addAll(featureOccurrenceCounts.getKeysAboveCountThreshold(occurrenceThreshold));
      return new DictionaryFeatureVectorGenerator<T, U>(features, generator, true);
    }