public static Symbol getVariableSymbol(Symbol symbol, Program otherProgram) {
		Symbol otherParent = getSymbol(symbol.getParentSymbol(), otherProgram);
		Namespace namespace = otherParent == null ? null : (Namespace) otherParent.getObject();
		return getVariableSymbol(symbol, otherProgram, namespace);
	}
Find the variable symbol in otherProgram which corresponds to the specified varSym.
@param symbol variable symbol
@param otherProgram other program
@return the variable symbol or null
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/SimpleDiffUtility.java