default void style(Appendable appendable, String text, Style... styles) {
        try {
            startStyle(appendable, styles);
            appendable.append(text);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        } finally {
            if (styles.length > 0) {
                endStyle(appendable);
            }
        }
    }
Styles text using the given styles and writes it to an Appendable.

@param appendable Where to write styled text.
@param text Text to write.
@param styles Styles to apply.
smithy-cli/src/main/java/software/amazon/smithy/cli/ColorFormatter.java