private void addRefToFieldWithGetter(Method getterMethod, FieldContext<T> fieldContext,
			MarkupSession markupSession) throws IOException {
		Object getterValue =
			ReflectionHelper.callGetter(getterMethod, fieldContext.getStructureInstance());
		if (getterValue != null) {
			Address addr = getterValue instanceof Address getterAddr
					? getterAddr
					: markupSession.getMappingContext().getAddressOfStructure(getterValue);
			if (addr != null) {
				markupSession.addReference(fieldContext, addr);
			}
		}
	}
Creates a FieldMappingInfo instance, used when the structure is variable length and there is
no pre-defined Ghidra Structure data type.

@param <T> structure mapped class type
@param field java field
@param fieldName name of Ghidra structure field
@param signedness {@link Signedness} enum
@param length override of structure field, or -1
@return new {@link FieldMappingInfo} instance
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/FieldMappingInfo.java