public <T> StructureContext<T> getStructureContextOfInstance(T structureInstance) {
		StructureMappingInfo<T> smi =
			structureInstance != null ? getStructureMappingInfo(structureInstance) : null;
		return smi != null ? smi.recoverStructureContext(structureInstance) : null;
	}
Returns the {@link StructureContext} of a structure mapped instance.

@param <T> java type of a class that is structure mapped
@param structureInstance an existing instance of type T
@return {@link StructureContext} of the instance, or null if instance was null or not
a structure mapped object
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/DataTypeMapper.java