public static @Nullable <T extends JsonElement> T getPropertyValueOfType(final @NotNull JsonObject object, final @NotNull String name,
                                                                           final @NotNull Class<T> clazz) {
    final JsonProperty property = object.findProperty(name);
    if (property == null) return null;
    return ObjectUtils.tryCast(property.getValue(), clazz);
  }
public static @Nullable <T extends JsonElement> T getPropertyValueOfType(final @NotNull JsonObject object, final @NotNull String name,
                                                                           final @NotNull Class<T> clazz)