private function getAnnotations($openPointer)
    {
        $annotations = \array_merge(
            [],
            ...\array_values(AnnotationHelper::getAnnotations($this->phpcsFile, $openPointer))
        );

        \uasort($annotations, function (Annotation $annotation1, Annotation $annotation2) {
            return $annotation1->getStartPointer() <=> $annotation2->getEndPointer();
        });

        return $annotations;
    }