void restorePluginsFromXml(Element root) throws PluginException {
		boolean isOld = isOldToolConfig(root);
		Collection<String> classNames = isOld ? getPluginClassNamesFromOldXml(root)
				: pluginsConfiguration.getPluginClassNames(root);
		Map<String, SaveState> map = isOld ? getPluginSavedStates(root, "PLUGIN")
				: getPluginSavedStates(root, "PLUGIN_STATE");

		PluginException pe = null;
		try {
			addPlugins(classNames);
		}
		catch (PluginException e) {
			pe = e;
		}

		try {
			initConfigStates(map);
		}
		catch (PluginException e) {
			pe = e.getPluginException(pe);
		}
		if (pe != null) {
			throw pe;
		}

	}
Removes the given plugins from the tool and removes any other plugins that were
depending on them.
@param plugins the list of plugins to remove.
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/PluginManager.java