docs: protected static void update(String[] ec, Set<String> predicateSet, Map<String, Integer> counter, int cutoff) {
          for (String s : ec) {
              Integer val = counter.get(s);
              val = val == null ? 1 : val + 1;
              counter.put(s, val);
  
              if (!predicateSet.contains(s) && counter.get(s) >= cutoff) {
                  predicateSet.add(s);
              }
          }
      }