@Override
	public PluginTool[] getRunningTools() {
		Workspace[] wsList = new Workspace[workspaces.size()];
		workspaces.toArray(wsList);
		ArrayList<PluginTool> runningTools = new ArrayList<>(TYPICAL_NUM_TOOLS);
		for (Workspace element : wsList) {
			PluginTool[] tools = element.getTools();
			for (PluginTool tool : tools) {
				runningTools.add(tool);
			}
		}

		PluginTool[] tools = new PluginTool[runningTools.size()];
		runningTools.toArray(tools);

		return tools;
	}
Registers the new instance of the tool in the namesMap and returns the total number of
running instances of that tool
@param toolName the name of the tool being registers
@param tool the tool being registered
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolManagerImpl.java