default void setWrite(long snap, boolean write) {
		if (write) {
			addFlags(snap, TraceMemoryFlag.WRITE);
		}
		else {
			clearFlags(snap, TraceMemoryFlag.WRITE);
		}
	}
Add or clear the {@link TraceMemoryFlag#WRITE} flag

@param snap the snap
@param write true to add, false to clear
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/memory/TraceMemoryRegion.java