/**
  * Collects all directly defined methods or method aliases for the given
  * {@link \PDepend\Source\AST\ASTTraitReference}
  *
  * @param \PDepend\Source\AST\ASTTraitReference $reference Context trait reference.
  *
  * @return void
  */
 private function collectMethods(ASTTraitReference $reference)
 {
     foreach ($reference->getType()->getAllMethods() as $method) {
         foreach ($this->getAliasesFor($method) as $alias) {
             $this->allMethods[] = $alias;
         }
     }
 }