/**
  * @return array {[ traitName => ReflectionMethod[] ]}
  */
 public function getUsedMethods()
 {
     $usedMethods = [];
     foreach ($this->reflectionClass->getMethods() as $method) {
         if ($method->getDeclaringTraitName() === NULL || $method->getDeclaringTraitName() === $this->reflectionClass->getName()) {
             continue;
         }
         $usedMethods[$method->getDeclaringTraitName()][$method->getName()]['method'] = $method;
         if ($method->getOriginalName() !== NULL && $method->getOriginalName() !== $method->getName()) {
             $usedMethods[$method->getDeclaringTraitName()][$method->getName()]['aliases'][$method->getName()] = $method;
         }
     }
     return $usedMethods;
 }