public final Reference getReference(Data data, Address toAddress) {
		Reference[] references =
			currentProgram.getReferenceManager().getReferencesFrom(data.getMinAddress());
		for (Reference reference : references) {
			if (reference.getToAddress().equals(toAddress)) {
				return reference;
			}
		}
		return null;
	}
Returns the reference from the data to the given address.
@param data the data
@param toAddress the destination address
@return the reference from the data to the given address
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java