private Item buildFunctionCall(String key, Inspector value) {
        return switch (key) {
            case WAND -> buildWand(key, value);
            case WEIGHTED_SET -> buildWeightedSet(key, value);
            case DOT_PRODUCT -> buildDotProduct(key, value);
            case GEO_LOCATION -> buildGeoLocation(key, value);
            case NEAREST_NEIGHBOR -> buildNearestNeighbor(key, value);
            case PREDICATE -> buildPredicate(key, value);
            case RANK -> buildRank(key, value);
            case WEAK_AND -> buildWeakAnd(key, value);
            default ->
                    throw newUnexpectedArgumentException(key, DOT_PRODUCT, NEAREST_NEIGHBOR, RANK, WAND, WEAK_AND, WEIGHTED_SET, PREDICATE);
        };
    }
Translates a list of grouping requests on JSON form to a list in the grouping language form
container-search/src/main/java/com/yahoo/search/query/SelectParser.java