private function applyGroupConstraints(RouteBuilder $routeBuilder): void
    {
        $groupConstraintBindings = [];

        foreach ($this->groupOptionsStack as $groupOptions) {
            $groupConstraintBindings = \array_merge($groupConstraintBindings, $groupOptions->constraints);
        }

        $routeBuilder->withManyConstraints($groupConstraintBindings);
    }