public void removeEventListener(String className) {

		List<Class<? extends PluginEvent>> unusedList = new ArrayList<>();

		Iterator<Class<? extends PluginEvent>> iter = listenersByEventType.keySet().iterator();
		while (iter.hasNext()) {
			Class<? extends PluginEvent> eventClass = iter.next();
			Set<PluginEventListener> set = listenersByEventType.get(eventClass);
			Iterator<PluginEventListener> it = set.iterator();
			while (it.hasNext()) {
				PluginEventListener listener = it.next();
				if (listener.getClass().getName().equals(className)) {
					it.remove();
					if (set.isEmpty()) {
						unusedList.add(eventClass);
					}
					break;
				}
			}
		}

		for (int i = 0; i < unusedList.size(); i++) {
			Class<? extends PluginEvent> eventClass = unusedList.get(i);
			eventConsumerRemoved(eventClass);
		}
	}
Remove the event listener by className; the plugin registered for events, but the
construction failed.

@param className class name of the plugin (event listener)
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/EventManager.java