protected function registerTraitMethod($trait, \ReflectionMethod $method)
    {
        $name = $method->getName();
        $this->_method[$name] = $method;

        $alias = '__' . lcfirst($trait) . ucfirst($name);
        $this->addTraitAlias($trait . '::' . $name, $alias);
        $this->addTraitMethod($trait, $name);

        if (!isset($this->_traitMethodsAliases[$name])) {
            $this->_traitMethodsAliases[$name] = [];
        }
        $this->_traitMethodsAliases[$name][] = $alias;
    }