public DBTraceReference addMemoryReference(long creationSnap, Address from, Address to,
			int operandIndex) {
		return trace.getReferenceManager()
				.addMemoryReference(Lifespan.nowOn(creationSnap), from, to, RefType.DATA,
					SourceType.DEFAULT, operandIndex);
	}
Add an operand memory reference

@param creationSnap the starting snap
@param from the from address
@param to the to address
@param operandIndex the operand index, or -1 for mnemonic
@return the reference
Ghidra/Debug/Framework-TraceModeling/src/test/java/ghidra/trace/database/ToyDBTraceBuilder.java