public B terminate(Consumer<DomainObjectChangedEvent> consumer) {
			EventType[] eventTypes = eventTypeList.toArray(new EventType[eventTypeList.size()]);
			terminateList.add(new EventTrigger(consumer, eventTypes));
			return self();
		}
Provides the consumer with termination to be associated with this collection of event
types. This form of terminate includes the event when performing the callback.
@param consumer the consumer for this collection of event types
@return the main event builder that created this sub-builder
Ghidra/Framework/Project/src/main/java/ghidra/framework/model/AbstractDomainObjectListenerBuilder.java