public void replaceFunctionVariableComment(Address originEntryPoint, Variable var,
			TaskMonitor monitor) {
		if (var instanceof Parameter) {
			replaceFunctionParameterComment(originEntryPoint, ((Parameter) var).getOrdinal(),
				monitor);
			return;
		}
		Address resultEntryPoint = originToResultTranslator.getAddress(originEntryPoint);
		Function f1 = resultProgram.getFunctionManager().getFunctionAt(resultEntryPoint);
		Function f2 = originProgram.getFunctionManager().getFunctionAt(originEntryPoint);
		if (f1 != null && f2 != null) {
			Variable toVar = findVariable(var, f1.getLocalVariables());
			Variable fromVar = findVariable(var, f2.getLocalVariables());
			String fromComment = (fromVar != null) ? fromVar.getComment() : null;
			if (toVar != null) {
				toVar.setComment(fromComment);
			}
		}
	}
<CODE>replaceFunctionVariableComment</CODE> replaces the comment on the indicated
function variable in program1 with the comment from the equivalent variable in program2.
@param originEntryPoint entry point address of the function whose variable is getting the comment replaced.
This address should be derived from the origin program.
@param var a variable that is equivalent to the one in program1 to be changed.
The variable passed here could be from another program.
@param monitor the task monitor for notifying the user of progress.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java