public final Reference createMemoryReference(Data data, Address toAddress,
			RefType dataRefType) {
		ReferenceManager referenceManager = currentProgram.getReferenceManager();
		Reference ref = referenceManager.addMemoryReference(data.getMinAddress(), toAddress,
			dataRefType, SourceType.USER_DEFINED, 0);
		return ref;
	}
Creates a memory reference from the given data.
@param data the data
@param toAddress the TO address
@param dataRefType the type of the reference
@return the newly created memory reference
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java