public static Plugin getPluginByName(PluginTool tool, String pluginName) {
		List<Plugin> list = tool.getManagedPlugins();
		Iterator<Plugin> it = list.iterator();
		while (it.hasNext()) {
			Plugin p = it.next();
			if (pluginName.equals(p.getName())) {
				return p;
			}
		}
		return null;
	}
Adds the given plugin to the tool and then returns the instance of the plugin that was
added

@param tool the tool
@param c the class of the plugin to add
@return the newly added plugin
@throws PluginException  if the plugin could not be constructed, or there was problem
		   executing its init() method, or if a plugin of this class already exists in the tool
Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadedIntegrationTest.java