code: private static PathFilter buildFilters(Set<String> filterPaths, boolean failedMatchValue) {
          if (filterPaths == null)
              return PathFilters.acceptAll();
          else if (filterPaths.isEmpty()) {
              return PathFilters.rejectAll();
          } else {
              MultiplePathFilterBuilder builder = PathFilters.multiplePathFilterBuilder(failedMatchValue);
              for (String importPathGlob : filterPaths)
                  builder.addFilter(PathFilters.match(importPathGlob), !failedMatchValue);
              return builder.create();
          }
      }
docs: Build a PathFilter for a set of filter paths
  
  @param filterPaths the set of paths to filter on.
  Can be null to indicate that no filters should be applied (accept all),
  can be empty to indicate that everything should be filtered (reject all).
  @param failedMatchValue the value the PathFilter returns when a path does not match.
  @return a PathFilter.