public <T> Address getMaxAddressOfStructure(T structureInstance) {
		StructureMappingInfo<T> smi =
			structureInstance != null ? getStructureMappingInfo(structureInstance) : null;
		StructureContext<T> structureContext =
			smi != null ? smi.recoverStructureContext(structureInstance) : null;
		return structureContext != null
				? structureContext.getStructureAddress()
						.add(structureContext.getStructureLength() - 1)
				: null;
	}
Returns the address of the last byte of a structure.

@param <T> type of object
@param structureInstance instance of an object that represents something in the program's
memory
@return {@link Address} of the last byte of the object, or null if not found 
or not a supported object
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/DataTypeMapper.java