private function registerAnnotations()
    {
        $annotations = [
            'Document',
            'Property',
            'Embedded',
            'ObjectType',
            'Nested',
            'Id',
            'ParentDocument',
            'Routing',
            'Version',
            'HashMap',
        ];

        foreach ($annotations as $annotation) {
            AnnotationRegistry::registerFile(__DIR__ . "/../Annotation/{$annotation}.php");
        }

        if (version_compare(PHP_VERSION, '7.2.0') < 0) {
            AnnotationRegistry::registerFile(__DIR__ . "/../Annotation/Object.php");
        }
    }