@Override
	public boolean isEquivalent(ExternalLocation other) {
		if (other == null) {
			return false;
		}

		// first they must be the same of type of external locations
		if (isFunction() != other.isFunction()) {
			return false;
		}

		String name = getLabel();
		String originalImportName = getOriginalImportedName();
		String otherName = other.getLabel();
		String otherOriginalImportName = other.getOriginalImportedName();

		// if the original import names are not null and they match, this is probably the one since
		// the original import names are most likely mangled names and should be unique.
		if (originalImportName != null && originalImportName.equals(otherOriginalImportName)) {
			return true;
		}

		// Check if the name of one equals the original import name of the other.  The logic here
		// is that the originals are most likely unique so any match on the original is good.
		// For example, a case where one of the externalLocations is demangled and the other is not.

		if (otherName.equals(originalImportName)) {
			return true;
		}

		if (name.equals(otherOriginalImportName)) {
			return true;
		}

		if (originalImportName != null || otherOriginalImportName != null) {
			return false;
		}

		if (!getSymbol().getName(true).equals(other.getSymbol().getName(true))) {
			return false;
		}

		return SystemUtilities.isEqual(getAddress(), other.getAddress());

	}
Set the label and optional namespace associated with an external location.
Any non-existing namespace will be created as a simple namespace within the associated
library.
@param label external location label.  The label may be qualified with a namespace
and best effort will be used to parse it (see {@link SymbolPath}).
If a namespace is not included within label, the current namespace will be preserved.
@param source the source of this external symbol:
Symbol.DEFAULT, Symbol.ANALYSIS, Symbol.IMPORTED, or Symbol.USER_DEFINED
@throws InvalidInputException if the name contains illegal characters (space for example)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/external/ExternalLocationDB.java