private function countLinesBetweenAnnotations(Annotation $current, Annotation $previous)
    {
        $tokens = $this->tokens;

        \preg_match('~(\\s+)$~', $tokens[$previous->getEndPointer()]['content'], $matches);

        $lines = $matches[1] ?? '';
        $lines .= TokenHelper::getContent(
            $this->phpcsFile,
            $previous->getEndPointer() + 1,
            $current->getStartPointer() - 1
        );

        return $this->countLines($lines);
    }