public void addEventListener(Class<? extends PluginEvent> eventClass,
			PluginEventListener listener) {
		Set<PluginEventListener> set = listenersByEventType.get(eventClass);
		if (set.isEmpty()) {
			String name = PluginEvent.lookupToolEventName(eventClass);
			if (name != null) {
				consumerMap.get(name).count++;
			}
		}
		set.add(listener);
	}
Add a plugin event listener that will be notified when an event of the given event class is
generated.

@param eventClass class of the event of interest
@param listener listener to notify
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/EventManager.java