private void sendToolEvent(PluginEvent event) {
		if (toolListeners.isEmpty()) {
			return;
		}

		if (!event.isToolEvent()) {
			return;
		}

		sendingToolEvent = true;
		try {
			event.setSourceName(PluginEvent.EXTERNAL_SOURCE_NAME);
			event.setTriggerEvent(null);
			for (int i = 0; i < toolListeners.size(); i++) {
				ToolListener tl = toolListeners.get(i);

				try {
					tl.processToolEvent(event);
				}
				catch (Throwable t) {
					Msg.showError(this, tool.getToolFrame(), "Plugin Event Error",
						"Error sending event to connected tool", t);
				}
			}
		}
		finally {
			sendingToolEvent = false;
		}
	}
Return an array of the last plugin events fired. EventManager maps the event class to the
last event fired.

@return array of plugin events
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/EventManager.java