public void forEach(EventType type, Consumer<DomainObjectChangeRecord> consumer) {
		if (!contains(type)) {
			return;
		}
		for (DomainObjectChangeRecord docr : subEvents) {
			if (docr.getEventType() == type) {
				consumer.accept(docr);
			}
		}
	}
Loops over all records in this event and calls the consumer for each record that matches
the given type.
@param type the event type to apply the consumer
@param consumer the consumer to call for each record of the given type
Ghidra/Framework/Project/src/main/java/ghidra/framework/model/DomainObjectChangedEvent.java