public function addResolver(ResolverInterface $resolver, $priority = 0)
    {
        if (!isset($this->prioritizedResolvers[$priority])) {
            $this->prioritizedResolvers[$priority] = [];
        }

        array_push($this->prioritizedResolvers[$priority], $resolver);
        krsort($this->prioritizedResolvers);
    }