public ColouredStringBuilder append(final String text, final ConsoleColour colour) {
        Objects.requireNonNull(text);
        Objects.requireNonNull(colour);
        if (colour.getColourCode() == null) {
            stringBuilder
                    .append(text);
        } else {
            stringBuilder
                    .append(colour.getColourCode())
                    .append(text)
                    .append(ConsoleColour.RESET.getColourCode());
        }
        return this;
    }
Wraps a StringBuilder and provides methods for appending coloured
text for use on the console
stroom-util/src/main/java/stroom/util/ColouredStringBuilder.java