private static <T1, T2, T3, R> Optional<R> mapAll(Tuple3<Optional<T1>, Optional<T2>, Optional<T3>> tuple, Function3<T1, T2, T3, R> function) {
        return tuple.v1.flatMap(v1 -> tuple.v2.flatMap(v2 -> tuple.v3.map(v3 -> function.apply(v1, v2, v3))));
    }
Get a {@link Collector} that calculates the common suffix of a set of strings.
jOOL-java-8/src/main/java/org/jooq/lambda/Agg.java