code: public static <U extends Comparable<U>, T extends Iterable<U>> Comparator<T> lexComparator() {
          return CmpUtil::lexCompare;
      }
docs: Retrieves a lexicographical comparator for the given type, which has to be an {@link Iterable} of {@link
  Comparable} types.
  
  @return the lexicographical comparator.