public static <T extends Comparable<? super T>> Collector<T, ?, Optional<T>> median() {
        return percentile(0.5);
    }
Get a {@link Collector} that calculates the <code>MEDIAN()</code> function given natural ordering.
jOOL/src/main/java/org/jooq/lambda/Agg.java