public static Predicate<String> toLoggingPredicate(final Predicate<String> predicate) {
        return str -> {
            boolean result = predicate.test(str);
            final ConsoleColour colour = result
                    ? ConsoleColour.GREEN
                    : ConsoleColour.RED;

            String msg = ConsoleColour.colourise(LogUtil.message("String under test [{}], result: {}",
                    str, result), colour);
            LOGGER.trace(msg);
            return result;
        };
    }
Wraps the passed {@link Predicate} with one that returns result
if the value under test is null
stroom-query/stroom-query-common/src/main/java/stroom/query/common/v2/StringPredicateFactory.java