code: @Override
      public Collection<AgentProjectInfo> collectDependencies(String rootDirectory) {
          Collection<DependencyInfo> dependencies = new LinkedList<>();
          Map<File, Collection<String>> folderMapToFiles = new FilesUtils().fillFilesMap(this.tempPathToPackagesFile.keySet(), this.includes,
                  this.excludes,true, false);
          for (File file : folderMapToFiles.keySet()) {
              for (String shortPath : folderMapToFiles.get(file)) {
                  String nugetFilePath = file.getAbsolutePath() + BACK_SLASH + shortPath;
                  DependencyInfo dependency = getDependency(nugetFilePath, this.tempPathToPackagesFile.get(file.getPath()));
                  dependencies.add(dependency);
              }
          }
          deleteDirectories();
          logger.debug("Finish deleting directories of {} {}", this.command, RESTORE);
          return getSingleProjectList(dependencies);
      }
docs: /* --- Public methods ---