public void renderString(StyledDocument document, String text, MutableAttributeSet attributes)
			throws BadLocationException {
		handler.document = document;
		handler.attributes = attributes;
		if (defaultAttributes == null) {
			defaultAttributes = attributes.copyAttributes();
		}
		parser.processString(text);
	}
Render a string with embedded ANSI escape codes.

<p>
The initial attributes object that is provided to this function will be used as the default
style (e.g. after a ESC [ m).

<p>
The instance may internally buffer some text. Use separate renderer objects for different
text streams.

@param document Document to render the string to
@param text A text string which may contain 7-bit ANSI escape codes
@param attributes Current text attributes; may be modified by this function
@throws BadLocationException if there is an error parsing the text
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/interpreter/AnsiRenderer.java