public function resolveFqnToAlias($fqn)
    {
        foreach ($this->getUses() as $namespace => $uses) {
            $alias = array_search($fqn, $uses, true);
            if ($alias) {
                $parts = explode('\\', $alias);

                return end($parts);
            }
        }

        return $fqn;
    }