docs: private static Map whitelistJsonObject(JsonObject unfiltered, Set<String> whitelist) {
      // If we create a new JsonObject here and serialize it the key/value pairs are inside
      // a superflouous "members" object, so create a Map instead.
      JsonObject filtered = new JsonObject();
  
      Set<Map.Entry<String,JsonElement>> entries = unfiltered.entrySet();
      for (Map.Entry<String,JsonElement> entry : entries) {
        String key = entry.getKey();
  
        if (whitelist.contains(key))
          filtered.add(key, entry.getValue());
      }
      return gson.fromJson(gson.toJson(filtered), Map.class);
    }