protected function parseImports(array $content, $resource)
    {
        if (isset($content['imports'])) {
            $chdir = dirname($resource);

            foreach ($content['imports'] as $import) {
                self::addFile($chdir . DIRECTORY_SEPARATOR . $import['resource'], $resource);
            }

            unset($content['imports']);
        }

        return $content;
    }