private boolean containsRegister(Register reg, List<Register> regList) {
		for (Register existingReg : regList) {
			Register parentReg = reg.getParentRegister();
			if (existingReg == reg || existingReg == parentReg ||
				existingReg == reg.getBaseRegister()) {
				return true;
			}
			if (parentReg != null && existingReg.getParentRegister() == parentReg) {
				return false;
			}
		}
		return false;
	}
Check for register corresponding to the specified varnode and add to inputRegs.
@param addressVarnode register or address varnode which has not been written
Ghidra/Features/Base/src/main/java/ghidra/util/state/ResultsState.java