public void mergeComment(AddressSet originAddressSet, int type, boolean both,
			TaskMonitor monitor) throws CancelledException {
		mergeCommentType(originAddressSet, type,
			both ? ProgramMergeFilter.MERGE : ProgramMergeFilter.REPLACE, monitor);
	}
<CODE>mergeComment</CODE> merges/replaces comments of the indicated
type wherever they occur in the specified address set.
@param originAddressSet the addresses where comments should be merged/replaced.
The addresses in this set should be from the origin program.
@param type ProgramMergeFilter comment type.
The comment type can be PLATE, PRE, EOL, REPEATABLE, POST.
@param both true means merge both program1 and program2 comments.
false means replace the program1 comment with the program2 comment.
@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