@Override
	public int getStringWidth() {
		if (textWidth == -1) {
			textWidth = 0;
			for (AttributedString attributedString : attributedStrings) {
				textWidth += attributedString.getStringWidth();
			}
		}
		return textWidth;
	}
An AttributedString that is composed of other AttributedStrings.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/CompositeAttributedString.java