protected function resolveMany($group, string $id = Group::DEFAULT_ID): MiddlewareCollection
    {
        $group = $group instanceof MiddlewareCollection ? clone $group : $this->collection($group, $id);
        foreach ($group as $key => $middleware) {
            $middleware = $this->resolveOne($middleware, $key);
            if ($middleware !== false) {
                $group->put($key, $middleware);
            }
        }
        return $group;
    }