public Function mergeFunction(Address entry, TaskMonitor monitor) throws CancelledException {
		monitor.checkCancelled();
//        monitor.setMessage("Replacing Function...   " + address.toString(true));
		return replaceFunction(entry, monitor);
	}
<CODE>mergeFunction</CODE> completely replaces any function at the
indicated address in program1 with the function, if any, in program2.

@param entry the entry point address of the function to be merged.
This address should be derived from program1.
@param monitor the task monitor for notifying the user of this merge's progress.
@throws CancelledException if user cancels via the monitor.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java