@SuppressWarnings("unchecked")
	private boolean processEnum(Map<String, Object> result) {
		String name = (String) result.get("name");
		String enuumComment = (String) result.get("comment");
		CategoryPath cp = getCategoryPath(result);
		int size = (int) (double) result.get("size");

		EnumDataType enuum = new EnumDataType(cp, name, size, dataManager);
		processSettings(result, enuum.getDefaultSettings());

		enuum.setDescription(enuumComment);
		Map<String, Object> constants = (Map<String, Object>) result.get("constants");
		for (Entry<String, Object> entry : constants.entrySet()) {
			processEnumMembers(entry, enuum);
		}

		addDataType(getPath(enuum), enuum);
		return true;
	}
Reads the datatypes encoded in SARIF from the specified SARIF parser and
recreates them in a datatype manager.

@param result  the SARIF parser
@param monitor the task monitor
@throws SAXParseException  if an SARIF parse error occurs
@throws CancelledException if the user cancels the read operation
Ghidra/Features/Sarif/src/main/java/sarif/managers/DataTypesSarifMgr.java