protected function resolve(string $directiveName): ?Directive
    {
        if ($className = Arr::get($this->resolved, $directiveName)) {
            return app($className);
        }

        return null;
    }