private void applyFilterToLibrary(ContributedLibrary lib) {
   if (selectedCategoryFilter != null && !selectedCategoryFilter.apply(lib)) {
     return;
   }
   if (!stringContainsAll(lib.getName(), selectedFilters)
       && !stringContainsAll(lib.getParagraph(), selectedFilters)
       && !stringContainsAll(lib.getSentence(), selectedFilters)) {
     return;
   }
   addContribution(lib);
 }
  private void applyFilterToLibrary(ContributedLibrary lib) {
    if (selectedCategoryFilter != null && !selectedCategoryFilter.test(lib)) {
      return;
    }

    String compoundTargetSearchText =
        lib.getName() + "\n" + lib.getParagraph() + "\n" + lib.getSentence();
    if (!stringContainsAll(compoundTargetSearchText, selectedFilters)) {
      return;
    }
    addContribution(lib);
  }
 public ContributedLibraryReleases(ContributedLibrary library) {
   this.name = library.getName();
   this.versions = new LinkedList<String>();
   this.releases = new LinkedList<ContributedLibrary>();
   this.selected = null;
   add(library);
 }
 public void add(ContributedLibrary library) {
   releases.add(library);
   String version = library.getParsedVersion();
   if (version != null) {
     versions.add(version);
   }
   selected = getLatest();
 }
 public boolean shouldContain(ContributedLibrary lib) {
   return lib.getName().equals(name);
 }