public void restoreXml(XmlPullParser parser, DescriptionManager qmanage,
		DescriptionManager rmanage,
		Map<Integer, ExecutableRecord> qMap, Map<Integer, ExecutableRecord> rMap)
		throws LSHException {
		notes = new ArrayList<SimilarityNote>();
		XmlElement el = parser.start("simres");
		int id = SpecXmlUtils.decodeInt(el.getAttribute("id"));
		ExecutableRecord exe = qMap.get(id);
		long address = SpecXmlUtils.decodeLong(el.getAttribute("addr"));
		basefunc = qmanage.findFunction(el.getAttribute("name"), address, exe);
		totalcount = SpecXmlUtils.decodeInt(el.getAttribute("total"));
		while (parser.peek().isStart()) {
			SimilarityNote newnote = new SimilarityNote();
			newnote.restoreXml(parser, rmanage, rMap);
			notes.add(newnote);
		}
		parser.end();
	}
A collection of matches to an (originally) queried function
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/protocol/SimilarityResult.java