@Override
	protected Element createElement(String key, Object value) {
		if (value instanceof SaveState saveState) {
			Element savedElement = saveState.saveToXml();
			Element element = new Element("SAVE_STATE");
			element.setAttribute(NAME, key);
			element.setAttribute(TYPE, "SaveState");
			element.addContent(savedElement);
			return element;
		}
		return super.createElement(key, value);
	}
Returns the sub SaveState associated with the
given name.
@param name The name associated with the desired Element.
@return The SaveState object associated with the
given name.
Ghidra/Framework/Generic/src/main/java/ghidra/framework/options/SaveState.java