private boolean checkRegisterInOut(Register reg, Object[] in, Object[] out) {
		if (reg == null || in == null || out == null) {
			return false;
		}

		List<Object> inList = Arrays.asList(in);
		List<Object> outList = Arrays.asList(out);

		return inList.contains(reg) && outList.contains(reg);
	}
Check the current operand for references based on input/outputs

@param context - context holding values
@param instr - instruction under consideration
@param list - input/output lists
@param opIndex - index of operand to check

@return true if a reference was found
Ghidra/Features/Base/ghidra_scripts/MultiInstructionMemReference.java