public function setResolverHandler(
        ResolverInterface $handler,
        bool $static = false
    ) {
        if ($static) {
            self::$globalResolverHandler = $handler;
        }

        $this->resolverHandler = $handler;

        return $this;
    }