public static function getInstance()
    {
        $driver = static::getLibrary();

        try {
            $instance = self::factory($driver, AnnotationsInterface::class);
        } catch (\Exception $e) {
            throw new AnnotationsException($e->getMessage());
        }

        return $instance;
    }