protected int findField(Component field) {
		for (int i = 0; i < linkedFields.size(); i++) {
			if (linkedFields.get(i).field == field) {
				return i;
			}
		}
		return -1;
	}
Get the index of a field.

@param field the field
@return the index, or -1 if the field does not belong to this composite field
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/TextFieldLinker.java