private static @NotNull Field specializeField(@NotNull Field field, @Nullable YAMLValue value) {
    return value != null ? field.resolveToSpecializedField(value) : field;
  }
private static @NotNull Field specializeField(@NotNull Field field, @Nullable YAMLValue value)