void updateEventList() {

		String[] producerEvents = producerTool.getToolEventNames();
		String[] consumedEvents = consumerTool.getConsumedToolEventNames();
		List<String> pList = Arrays.asList(producerEvents);
		List<String> cList = Arrays.asList(consumedEvents);
		ArrayList<String> producerList = new ArrayList<>(pList);
		ArrayList<String> consumerList = new ArrayList<>(cList);

		// get the intersection of the lists
		producerList.retainAll(consumerList);
		consumerList.retainAll(producerList);

		for (int i = 0; i < producerList.size(); i++) {
			String event = producerList.get(i);
			if (!connectHt.contains(event)) {
				connectHt.put(event, DISCONNECTED);
			}
		}
		String[] keys = connectHt.getKeys();
		for (String key : keys) {
			if (!producerList.contains(key)) {
				connectHt.remove(key);
			}
		}
	}
Update the events that are consumed and produced, as the tool
may have added or removed plugins.
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolConnectionImpl.java