default <T> Consumer<T> createIfDebugConsumer(final Consumer<T> debugConsumer) {
        if (isDebugEnabled()) {
            return debugConsumer;
        } else {
            return val -> {
            };
        }
    }
If debug is enabled returns the supplied consumer else, returns a no-op consumer.
Useful in the {@link java.util.stream.Stream#peek(Consumer)} method for logging items
in the stream.
stroom-util/src/main/java/stroom/util/logging/LambdaLogger.java