public void savePluginsToXml(Element root, List<Plugin> plugins) {
		Map<PluginPackage, List<Plugin>> pluginPackageMap = buildPluginPackageMap(plugins);
		for (PluginPackage pluginPackage : pluginPackageMap.keySet()) {
			root.addContent(getPackageElement(pluginPackage, pluginPackageMap.get(pluginPackage)));
		}
	}
This class maintains a collection of all plugin classes that are acceptable for a given tool
type.  Simple applications with only one plugin type can use the
{@link DefaultPluginsConfiguration}.  More complex tools can support a subset of the available
plugins. Those tools should create custom subclasses for each tool type, that filter out plugins
that are not appropriate for that tool type.
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/PluginsConfiguration.java