protected FieldLocation findFieldLocation(Address address, String fieldName) {
		Layout layout = listingPanel.getLayout(address);
		ListingModelAdapter adapter = (ListingModelAdapter) fieldPanel.getLayoutModel();
		BigInteger index = adapter.getAddressIndexMap().getIndex(address);
		int count = layout.getNumFields();
		for (int i = 0; i < count; i++) {
			Field f = layout.getField(i);
			if ((f instanceof ListingField field) &&
				field.getFieldFactory().getFieldName().equals(fieldName)) {
				return new FieldLocation(index, i);
			}
		}
		return null;
	}
Locate a listing field by name and address

<p>
Generally, this is used in {@link #showInputs(FieldPanel)} to find constraints suitable for
use in {@link Container#add(Component, Object)} on the passed {@code fieldPanel}. Likely, the
address should be obtained from {@link #getAddress()}.

@param address the address for the line (row) in the listing
@param fieldName the column name for the field in the listing
@return if found, the field location, or null
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/assembler/AbstractPatchAction.java