/**
  * Returns visible methods declared by traits.
  *
  * @return array
  */
 public function getTraitMethods()
 {
     $methods = array();
     foreach ($this->reflection->getTraitMethods(self::$methodAccessLevels) as $method) {
         $apiMethod = new ReflectionMethod($method, self::$generator);
         if (!$this->isDocumented() || $apiMethod->isDocumented()) {
             $methods[$method->getName()] = $apiMethod;
         }
     }
     return $methods;
 }