docs: public List<T> getFrequentStyles(float factor, int maxfreq)
      {
          List<T> ret = new ArrayList<T>();
          for (Map.Entry<T, Integer> entry : styles.entrySet())
          {
              if (entry.getValue() >= factor * maxfreq)
                  ret.add(entry.getKey());
          }
          return ret;
      }