private function collectTags() { $tagName = function ($tag) { return $tag->getName(); }; $this->tags = Arrays::groupBy($tagName, $this->docBlock->getTags()); }