private static List<Value> toList(Value... elements) {
    List<Value> list = new ArrayList<>();
    Collections.addAll(list, elements);
    return list;
  }
private static List<Value> toList(Value... elements)