public final Reference[] getReferencesTo(Address address) {
		int count = currentProgram.getReferenceManager().getReferenceCountTo(address);
		if (count > MAX_REFERENCES_TO) {
			count = MAX_REFERENCES_TO;
		}
		int index = 0;
		Reference[] references = new Reference[count];
		ReferenceIterator iterator = currentProgram.getReferenceManager().getReferencesTo(address);
		while (iterator.hasNext()) {
			monitor.setMessage("Loading references to " + address + ": " + index + " of " + count);
			if (monitor.isCancelled() || index == MAX_REFERENCES_TO) {
				break;
			}
			references[index++] = iterator.next();
		}
		return references;
	}
Returns an array of the references TO the given address.
Note: If more than 4096 references exists to this address,
only the first 4096 will be returned.
If you need to access all the references, please
refer to the method <code>ReferenceManager::getReferencesTo(Address)</code>.
@param address the from address of the references
@return an array of the references TO the given address
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java