protected void makeWay(Lifespan span, Address fromAddress, Address toAddress,
			int operandIndex) {
		// TODO: Do I consider "compatibility?" as in ReferenceDBManager?
		// NOTE: Always call with the write lock
		for (DBTraceReferenceEntry ent : referenceMapSpace.reduce(
			TraceAddressSnapRangeQuery.intersecting(new AddressRangeImpl(fromAddress, fromAddress),
				span)).values()) {
			if (!ent.toAddress.equals(toAddress)) {
				continue;
			}
			if (ent.opIndex != operandIndex) {
				continue;
			}

			// TODO: This sends events and updates primary. Do I want that here?
			DBTraceUtils.makeWay(ent, span, (e, s) -> e.setLifespan(s), e -> e.ref.delete());
		}
	}
A reference entry

<p>
Version history:
<ul>
<li>1: Change {@link #toAddress} to 10-byte fixed encoding</li>
<li>0: Initial version and previous unversioned implementation</li>
</ul>
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/symbol/DBTraceReferenceSpace.java