private Icon getColumnIconForSortState(TableSortState columnSortStates,
			ColumnSortState sortState, boolean isPendingSort) {

		if (isPendingSort) {
			return PENDING_ICON;
		}

		Icon icon = (sortState.isAscending() ? UP_ICON : DOWN_ICON);
		if (columnSortStates.getSortedColumnCount() != 1) {
			MultiIcon multiIcon = new MultiIcon(icon);
			int sortOrder = sortState.getSortOrder();
			String numberString = Integer.toString(sortOrder);
			multiIcon.addIcon(new NumberPainterIcon(icon.getIconWidth() + PADDING_FOR_COLUMN_NUMBER,
				icon.getIconHeight(), numberString));
			icon = multiIcon;
		}

		return icon;
	}
Paints a background highlight under the icon that will get painted.
@param g2d the graphics
@param scale the current scale, up to max 
@param max the max emphasis size
@param ix the icon x
@param iy the icon y
@param iw the icon width
@param ih the icon height
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTableHeaderRenderer.java