@Override
	public Color getColor(int index) {
		IndexedOffset pos = getIndexedOffsetForCharPosition(index);
		return attributedStrings[pos.index].getColor(pos.offset);
	}
An AttributedString that is composed of other AttributedStrings.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/CompositeAttributedString.java