/**
  * @param Package $package
  * @param OutputInterface $output
  */
 protected function cleanPackage(Package $package, OutputInterface $output)
 {
     $options = [];
     if (isset($this->options['packages'][$package->getName()]['excludes'])) {
         $options['excludes'] = $this->options['packages'][$package->getName()]['excludes'];
     }
     $handler = $this->getHandlerByPackage($package, $options);
     $files = $handler->getFilesToRemove();
     if (count($files) === 0) {
         $output->writeln(sprintf('No files to delete in package %s', $package->getName()), OutputInterface::OUTPUT_NORMAL);
     } else {
         $output->writeln(sprintf('%d files to delete in package %s', count($files), $package->getName()), OutputInterface::OUTPUT_NORMAL);
         foreach ($files as $file) {
             $this->files[] = $file;
         }
     }
 }