@Nonnull
	public StyledDocument<Collection<String>, String, Collection<String>> newText(@Nonnull String text) {
		return ReadOnlyStyledDocument.fromString(text, codeArea.getInitialParagraphStyle(),
				codeArea.getInitialTextStyle(), codeArea.getSegOps());
	}
Some RichTextFX methods require styled documents, hence this helper for converting simple strings into those.

@param text
		Text to wrap in a styled document with the default values.

@return Text document of the requested text.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/Editor.java