public function resolveClass(FoundClass $found)
    {
        Logger::trace("Resolving class %s", $found->name);
        if ($found->name[0] === '\\') {
            return new Classname($found->name);
        }

        $classParts = explode('\\', $found->name);
        if (count($classParts) >= 2) {
            $b = array_shift($classParts);
            $baseClass = $this->originalUse->get($b);
            if ($baseClass) {
                return new Classname($baseClass . '\\' . implode('\\', $classParts));
            }
        }
        if ($c = $this->originalUse->get($found->name)) {
            Logger::trace("Found a use statement for class");
            Logger::trace("Resolved to %s", $c);
            return $c;
        } else {
            $class = Classname::build($this->getOriginalNamespace(), $found->name);
            Logger::trace("Resolved to %s", $class->classname);
            return $class;
        }
    }