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