@Override
	public void paint(JComponent c, Graphics g, int x, int y) {
		int xPos = x;
		for (AttributedString attributedString : attributedStrings) {
			attributedString.paint(c, g, xPos, y);
			xPos += attributedString.getStringWidth();
		}
	}
An AttributedString that is composed of other AttributedStrings.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/CompositeAttributedString.java