private function getResolverForType($type)
    {
        $resolver = Arr::get($this->resolvers, $type);

        if ($resolver !== null) {
            return $resolver;
        }

        $parts = explode('.', $type);
        if (count($parts) > 1) {
            array_shift($parts);

            return $this->getResolverForType(implode('.', $parts));
        }

        return null;
    }