code: public static <T, U extends Comparable<? super U>> Collector<T, ?, Optional<Long>> rankBy(U value, Function<? super T, ? extends U> function) {
          return rankBy(value, function, naturalOrder());
      }
docs: Get a {@link Collector} that calculates the derived <code>RANK()</code> function given natural ordering.