protected void paintSelection(Graphics g, FieldBackgroundColorManager colorManager, int row) {
		List<Highlight> selections = colorManager.getSelectionHighlights(row);
		for (Highlight highlight : selections) {
			g.setColor(highlight.getColor());
			int startCol = highlight.getStart();
			int endCol = highlight.getEnd();
			int x1 = findX(startCol);
			int x2 = endCol >= text.length() ? width : findX(endCol);
			g.fillRect(startX + x1, -getHeightAbove(), x2 - x1, getHeight());
		}
	}
@see docking.widgets.fieldpanel.field.Field#isValid(int, int)
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/SimpleTextField.java