@Override
	public int getIndexAtPoint(Point p) {
		// fields are weird, internally their 0 y position is the font baseline, so we
		// need to compensate for that to find the row. Also, fields internal x position
		// is relative to the field panel and the p being given here is relative to the field,
		// we need to add the fields startingX to the given point.
		int row = field.getRow(p.y - field.getHeightAbove());
		int col = field.getCol(row, p.x + field.getStartX());
		int result = field.screenLocationToTextOffset(row, col);
		return result;
	}
Returns the field associated with this AccessibleField.
@return the field associated with this AccessibleField
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/AccessibleField.java