private function getUnqualifiedClassType($node, PhpFileModelInterface $phpFile): string
    {
        $name = $node->toString();
        if ($phpFile->hasUse($name)) {
            return $phpFile->getUse($name);
        }
        $namespace = $phpFile->getNamespaceString();
        if ($namespace !== null) {
            $namespace = $namespace . '\\';
        }
        return $namespace . $name;
    }