Element saveDataStateToXml(boolean savingProject) {
		Element root = new Element("DATA_STATE");
		for (Plugin p : pluginList) {
			SaveState ss = new SaveState("PLUGIN");
			p.writeDataState(ss);
			if (!ss.isEmpty()) {
				Element e = ss.saveToXml();
				e.setAttribute("NAME", p.getName());
				root.addContent(e);
			}
		}
		return root;
	}
Restore the data state from the given XML element.
@param root XML element containing plugins' data state
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/PluginManager.java