public AttributedString substring(int start) {
		AttributedString newString = deriveAttributedString(text.substring(start));
		if (start == 0) {
			// keep the icon on the string if it is at the beginning
			newString.icon = icon;
		}
		return newString;
	}
Creates an attributed string with the given text, color, icon and metrics with
other attributes, like highlighting and underlining.

@param icon icon image to be displayed to the left of the text
@param text The text that this class describes.
@param textColor The color to paint the text.
@param fontMetrics The font metrics used to draw the text.
@param underline True if <code>text</code> should be underlined.
@param underlineColor the color to use for underlining.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/AttributedString.java