public void addText(String text) {
		JTextPane textPane = new FixedSizeTextPane(text, Callback.dummy());
		textPane.setFocusable(false);
		add(textPane);
		String updated = text;

		// the text pane will trim leading spaces; keep the client spaces
		int leadingSpaces = text.indexOf(text.trim());
		if (leadingSpaces != 0) {
			updated = StringUtils.repeat("&nbsp;", leadingSpaces) + text.substring(leadingSpaces);
		}

		setText(textPane, updated);

		// clear the description to avoid excess text reading
		textPane.getAccessibleContext().setAccessibleDescription("");
	}
Adds text to this widget that will be displayed as plain text.
@param text the text
Ghidra/Framework/Docking/src/main/java/docking/widgets/GHyperlinkComponent.java