public static void consumeNonBlankString(final String str, final Consumer<String> consumer) {
        // GWT doesn't emulate String::isBlank
        if (!isBlankString(str) && consumer != null) {
            consumer.accept(str);
        }
    }
If str is not null/empty/blank then pass it to consumer (if that is not null).
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java