private void replaceLocation(ExternalLocation toExternalLocation,
			ExternalLocation fromExternalLocation, TaskMonitor monitor)
			throws DuplicateNameException, InvalidInputException {

		Address fromAddress = fromExternalLocation.getAddress();
		Address toAddress = toExternalLocation.getAddress();
		boolean addressChanged = !SystemUtilities.isEqual(fromAddress, toAddress);

		String fromLabel = fromExternalLocation.getSource() == SourceType.DEFAULT ? null
				: fromExternalLocation.getLabel();
		String toLabel = toExternalLocation.getSource() == SourceType.DEFAULT ? null
				: toExternalLocation.getLabel();
		if (!SystemUtilities.isEqual(fromLabel, toLabel)) {
			if (fromLabel == null && addressChanged) {
				// need to update address first if switching to null/default label
				toExternalLocation.setAddress(fromAddress);
				addressChanged = false;
			}
			SourceType fromSourceType = fromExternalLocation.getSource();
			toExternalLocation.getSymbol().setName(fromLabel, fromSourceType);
		}
		if (addressChanged) {
			toExternalLocation.setAddress(fromAddress);
		}
	}
Gets the external locations (result, latest, my, original) for the specified MY program
external space address.<br>
NOTE: Be careful where you call this method from. It is intended to be used for external
location changes only (not for Adds). It gets the ORIGINAL based on MY and then LATEST and
RESULT based on the ORIGINAL.
@param myAddress the MY program external space address for MY external location
@return all four program's external locations.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ExternalFunctionMerger.java