public static <T> Collector<T, ?, Optional<T>> avg() {
        return avg(t -> t);
    }
Get a {@link Collector} that calculates the <code>AVG()</code> for any
type of {@link Number}.
jOOL-java-8/src/main/java/org/jooq/lambda/Agg.java