private void merge(ProgramMerge pm, AddressSet addrSet, TaskMonitor monitor)
			throws MemoryAccessException, CancelledException {
		mergeCodeUnits(pm.getOriginProgram(), addrSet, true, monitor);
		pm.mergeEquates(addrSet, monitor);
		// Add the references, since others were removed when the code unit was cleared initially
		// as it was merged.
		pm.replaceReferences(addrSet, monitor);
		monitor.setMessage("Resolving Code Unit conflicts.");
	}
Merges all the current conflicts according to the conflictOption.
@param listingPanel the listing merge panel
@param chosenConflictOption the conflict option to use when merging (should be ASK_USER for interactive).
@param monitor the status monitor
@throws CancelledException if the user cancels
@throws MemoryAccessException if bytes can't be merged.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/CodeUnitMerger.java