/**
  * @return array
  */
 public function buildDependencyTree()
 {
     foreach ($this->finder->getFiles() as $fileInfo) {
         foreach ($this->dependencyChecker as $dependencyChecker) {
             $dependencyChecker->setDependencyTree($this->dependencyTree);
             $dependencyChecker->addDependencies($fileInfo);
         }
     }
     $this->writer->write($this->dependencyTree->getDependencyTree());
 }
 /**
  * @param \Symfony\Component\Finder\SplFileInfo $fileInfo
  * @param string $to
  * @param array $dependencyInformation
  *
  * @return void
  */
 protected function addDependency(SplFileInfo $fileInfo, $to, array $dependencyInformation = [])
 {
     $dependencyInformation[DependencyTree::META_FINDER] = get_class($this);
     $this->dependencyTree->addDependency($fileInfo, $to, $dependencyInformation);
 }