private function buildQueryTypeParameters(ParameterBuilderInterface $builder, array $groups = []): void
    {
        $builder->add(
            'query_type',
            ParameterType\ChoiceType::class,
            [
                'required' => true,
                'options' => [
                    'List' => 'list',
                    'Tree' => 'tree',
                ],
                'groups' => $groups,
            ]
        );
    }