public boolean canAutoSave(PluginTool tool) {
		ToolSaveStatus status = toolStatusMap.get(tool.getToolName());
		if (status == ToolSaveStatus.ASK_SAVE_MODE) {
			return false;
		}

		// we are in auto mode...if there is only one tool, then we can auto save
		if (getToolInstanceCount(tool) <= 1) {
			return true;
		}

		// otherwise, lazy update the status...things may have changed
		if (tool.hasConfigChanged()) {
			status = ToolSaveStatus.ASK_SAVE_MODE;
			toolStatusMap.put(tool.getToolName(), status);
		}

		return (status == ToolSaveStatus.AUTO_SAVE_MODE);
	}
Get the key for the connection map.

@param producer tool producing an event
@param consumer tool consuming an event
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolManagerImpl.java