@Override
	public void propertyChange(PropertyChangeEvent evt) {

		PluginTool tool = (PluginTool) evt.getSource();

		String propertyName = evt.getPropertyName();

		if (propertyName.equals(PluginTool.PLUGIN_COUNT_PROPERTY_NAME)) {
			updateConnections(evt);
		}

		if (!propertyName.equals(PluginTool.TOOL_NAME_PROPERTY)) {
			return;
		}

		String oldName = (String) evt.getOldValue();
		String newName = (String) evt.getNewValue();

		deregisterTool(oldName, tool);
		registerTool(newName, tool);

		// Update connectMap
		updateConnectMap(tool);

		// notify listeners of tool change
		firePropertyChangeEvent(evt);
	}
Debug method for printing out the list of connections.
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolManagerImpl.java