protected function getTypeFromTag(File $file, $tagIndex)
    {
        $content = $file->getTokens()[($tagIndex + 2)]['content'];
        $parts   = explode(' ', $content, 2);
        $type    = $parts[0];
        return $type;
    }