private long getResultID(Program program, long id1) throws NoValueException {
		if (latestPgm == program) {
			return getExternalResultIDFromLatestID(id1);
		}
		if (myPgm == program) {
			return getExternalResultIDFromMyID(id1);
		}
		if (originalPgm == program) {
			return getExternalResultIDFromOriginalID(id1);
		}
		return id1;
	}
Merges the references from the same program that had its code units chosen
in the Code Unit merge phase.
@param monitor the task monitor for allowing cancel and showing progress.
@throws CancelledException if the user cancels the merge.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ReferenceMerger.java