private Reference[] getAllReferencesBetweenAddresses(Address fromAddress, Address toAddress) {
		ReferenceManager referenceManager = program.getReferenceManager();
		ReferenceIterator references = referenceManager.getReferencesTo(toAddress);

		List<Reference> referenceList = new ArrayList<>();
		while (references.hasNext()) {
			Reference reference = references.next();
			if (reference.getFromAddress().equals(fromAddress)) {
				referenceList.add(reference);
			}
		}

		return referenceList.toArray(new Reference[referenceList.size()]);
	}
Overridden to *not* count the home address as in the list of matching address so that the 
home address will not be considered for highlighting.
@param address The address for which to search.
@return true if the given address is in the set of this location descriptor's 
        reference addresses.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/XRefLocationDescriptor.java