docs: public T getMostFrequent()
      {
          T ret = null;
          int freq = 0;
          for (Map.Entry<T, Integer> entry : styles.entrySet())
          {
              if (entry.getValue() > freq)
              {
                  ret = entry.getKey();
                  freq = entry.getValue();
              }
          }
          return ret;
      }