protected static Symbol getVariableSymbol(Symbol varSym, Program otherProgram,
			Namespace otherNamespace) {
		if (!(otherNamespace instanceof Function)) {
			return null;
		}

		Program program = varSym.getProgram();
		SymbolTable otherSymTable = otherProgram.getSymbolTable();
		Variable var = (Variable) varSym.getObject();

		VariableStorage otherStorage =
			getCompatibleVariableStorage(program, var.getVariableStorage(), otherProgram);
		if (otherStorage == null || otherStorage.isBadStorage()) {
			return null;
		}
		Variable minVar =
			getOverlappingVariable(otherSymTable, var, otherStorage, otherNamespace.getSymbol());
		if (minVar != null) {
			return minVar.getSymbol();
		}
		return null;
	}
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