docs: public int getMaximalFrequency()
      {
          int maxfreq = 0;
          for (Map.Entry<T, Integer> entry : styles.entrySet())
          {
              if (entry.getValue() > maxfreq)
                  maxfreq = entry.getValue();
          }
          return maxfreq;
      }