protected void listenForUntyped(EventType type, Consumer<DomainObjectChangeRecord> handler) {
		if (type == DomainObjectEvent.RESTORED) {
			restoredHandler = handler;
		}
		else {
			untypedMap.put(type, handler);
		}
	}
Listen for the given event, taking the affected object, the old value, and the new value

@param <T> the type of the affected object
@param <U> the type of the values
@param type the event type
@param handler the handler
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/util/TypedEventDispatcher.java