public List<File> collectFiles(Collection<? extends File> libraries) {
    myFiles = new ArrayList<>();
    for (File library : libraries) {
      if (library.exists()) {
        addFile(library);
        if (library.isDirectory()) {
          addLibraries(library);
        }
      }
    }
    return myFiles;
  }
public List<File> collectFiles(Collection<? extends File> libraries)