public String getReferenceRepresentationString(CodeUnit fromCodeUnit, Reference ref) {
		// NOTE: The isRead param is false since it really only pertains to register references which should
		// generally only correspond to writes
		Variable refVar = fromCodeUnit.getProgram()
				.getFunctionManager()
				.getReferencedVariable(fromCodeUnit.getMinAddress(), ref.getToAddress(), 0, false);
		Object repObj = getReferenceRepresentation(fromCodeUnit, ref, refVar);
		return repObj != null ? repObj.toString() : null;
	}
Returns a marked-up representation of the reference destination.

@param fromCodeUnit
@param ref
@return destination as a string or null if a suitable string could not be
        produced.
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java