public static <T, U, E extends Exception> BiConsumer<T, U> rethrowBiConsumer(
            BiConsumerWithExceptions<T, U, E> biConsumer)
            throws E {
        return (t, u) -> {
            try {
                biConsumer.accept(t, u);
            } catch (Exception exception) {
                throwAsUnchecked(exception);
            }
        };
    }
e.g:
.forEach(rethrowConsumer(name -> System.out.println(Class.forName(name))));
or
.forEach(rethrowConsumer(ClassNameUtil::println));
stroom-util/src/main/java/stroom/util/exception/LambdaExceptionUtil.java