@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (obj == this) {
			return true;
		}
		if (!(obj instanceof ExternalReference)) {
			return false;
		}
		Reference ref = (Reference) obj;
		if (fromAddr.equals(ref.getFromAddress()) && opIndex == ref.getOperandIndex() &&
			sourceType == ref.getSource() && refType == ref.getReferenceType()) {

			ExternalLocation externalLocation = getExternalLocation();
			if (externalLocation != null) {
				return externalLocation.isEquivalent(
					((ExternalReference) ref).getExternalLocation());
			}
		}
		return false;
	}
@see java.lang.Object#equals(Object)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/references/ExternalReferenceDB.java