docs: private static JsonArray toJsonArray(Collection<String> values) {
          JsonArray array = new JsonArray();
          for (String value : values) {
              array.add(value);
          }
          return array;
  
      }