protected function collectAllTraits()
    {
        if ($this->_allTraits === null) {
            $this->_allTraits = Type::traits($this, true);
            unset($this->_allTraits[TraitMethods::class]); // exclude this trait
        }
        return $this->_allTraits;
    }