private function searchNamespaces($paths, $class, $truncate)
    {
        foreach ($paths as $namespace => $directories) {
            $canonized = $this->canonizeClass($namespace, $class, $truncate);

            if ($canonized && $file = $this->searchDirectories($directories, $canonized)) {
                return $file;
            }
        }

        return false;
    }