public function resolveConflictAlias($trait, $method, $alias)
    {
        $fullClass = $this->classFile->getFullClassName($trait);
        if (method_exists($fullClass, $method) === false) {
            throw \Aviogram\Common\PHPClass\Exception\ClassTrait::undefinedMethod($trait, $method);
        }

        $this->conflicts[] = "{$trait}::{$method} as {$alias};";

        if ($trait !== $this->name && in_array($trait, $this->secondNames) === false) {
            if ($this->classFile->isTraitDefined($trait) === false) {
                throw \Aviogram\Common\PHPClass\Exception\ClassTrait::traitNotFound($trait);
            }

            $this->secondNames[] = $trait;
        }

        return $this;
    }