private function analyzeDependencies(array $process, PhpStringParser $phpParser, GeneratorDataObject $generator)
    {
        $generator = clone $generator;

        if (isset($process['dependencies']) === true && is_array($process['dependencies']) === true) {
            foreach ($process['dependencies'] as $dependencieName) {
                $generator->addDependency(
                    $this->analyze($dependencieName, $phpParser, $generator, $generator->getDto()->getMetadata())
                );
            }
            $generator = $this->addDependenciesVariablesToMainGenerator($generator);
        }

        return $generator;
    }