public static @NotNull <T> T deserialize(Document document, Class<T> aClass) throws SerializationException {
    return deserialize(document.getRootElement(), aClass);
  }
public static @NotNull <T> T deserialize(Document document, Class<T> aClass)