private void processOnEachMap(DomainObjectChangedEvent event) {
			// if lots of records, first check if any event types of interest are in the event,
			// otherwise, faster to just loop through records anyway
			if (event.numRecords() > onEachMap.size()) {
				if (!event.contains(eachEventTypes)) {
					return;
				}
			}

			for (DomainObjectChangeRecord record : event) {
				EventType type = record.getEventType();
				TypedRecordConsumer<?> typedRecordConsumer = onEachMap.get(type);
				if (typedRecordConsumer != null) {
					typedRecordConsumer.accept(event, record);
				}
			}
		}
If there is at least one record with a type that has to be processed for each record,
then loop through the records and call the corresponding consumer.
@param event the event being processed
Ghidra/Framework/Project/src/main/java/ghidra/framework/model/AbstractDomainObjectListenerBuilder.java