private RefType getOperandMemoryReferenceType(InstructionDB inst, int opIndex,
			Address[] flowAddrs, Address refAddr) {
		if (program.getRegister(refAddr) != null) {
			return null;
		}

		RefType refType = RefTypeFactory.getDefaultMemoryRefType(inst, opIndex, refAddr, true);
		if (refType.isFlow()) {
			for (int j = 0; j < flowAddrs.length; j++) {
				if (refAddr.equals(flowAddrs[j])) {
					flowAddrs[j] = null;
					return refType;
				}
			}
			if (refType != RefType.INDIRECTION) {
				refType = RefType.DATA;
			}
		}
		return refType;
	}
Get operand reference type for a new default memory reference
@param inst instruction
@param opIndex operand index
@param flowAddrs known set of flow destination addresses.  Any address utilized from this
list to produce an operand reference will be set to null within this array.
@param refAddr reference to address
@return reference type or null if refAddr corresponds to defined register
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeManager.java