/**
  * Build a Symfony2 Finder instance that searches all included paths for files.
  *
  * The local config instance will be queried for included and excluded files and the Finder will be populated with
  * them.
  *
  * @return Finder
  */
 protected function buildFinder()
 {
     $finder = new Finder();
     $finder->in($this->config->getIncludedPaths())->notPath('/vendor/')->files();
     foreach ($this->config->getExcludedPaths() as $excluded) {
         $finder->notPath($excluded);
     }
     return $finder;
 }