public static function from(Reader $reader, \Reflector $reflector)
    {
        if ($reflector instanceof \ReflectionClass) {
            return new static(
                Psi::it($reader->getClassAnnotations($reflector))->toArray()
            );
        }

        if ($reflector instanceof \ReflectionMethod) {
            return new static(
                Psi::it($reader->getMethodAnnotations($reflector))->toArray()
            );
        }

        return new static();
    }