private <T> Element setArrayAttributes(String key, String type, Object values) {
		Element elem = new Element("ARRAY");
		elem.setAttribute(NAME, key);
		elem.setAttribute(TYPE, type);
		for (int i = 0; i < Array.getLength(values); i++) {
			Object value = Array.get(values, i);
			if (value != null) {
				Element arrElem = new Element(ARRAY_ELEMENT_NAME);
				arrElem.setAttribute(VALUE, value.toString());
				elem.addContent(arrElem);
			}
		}
		return elem;
	}
Save this object to an XML element.
@return Element XML element containing the properties
Ghidra/Framework/Generic/src/main/java/ghidra/framework/options/GProperties.java