wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/wildcard/DefaultWildcardStreamLocator.java
@SuppressWarnings("serial")
  private IOFileFilter createWildcardCollectorFileFilter(final WildcardContext wildcardContext, final Collection<File> allFiles) {
    notNull(wildcardContext);
    notNull(allFiles);
    return new WildcardFileFilter(wildcardContext.getWildcard()) {
      @Override
      public boolean accept(final File file) {
        final boolean accept = super.accept(file);
        if (accept) {
          LOG.debug("\tfound resource: {}", file.getPath());
          allFiles.add(file);
        }
        return accept;
      }
    };
  }
@SuppressWarnings("serial")
  private IOFileFilter createWildcardCollectorFileFilter(final WildcardContext wildcardContext, final Collection<File> allFiles) {
    notNull(wildcardContext);
    notNull(allFiles);
    return new WildcardFileFilter(wildcardContext.getWildcard()) {
      @Override
      public boolean accept(final File file) {
        final boolean accept = super.accept(file);
        if (accept) {
          LOG.debug("\tfound resource: {}", file.getPath());
          allFiles.add(file);
        }
        return accept;
      }
    };
  }
@ SuppressWarnings ( "serial" ) private IOFileFilter createWildcardCollectorFileFilter ( final WildcardContext wildcardContext , final Collection < File > allFiles ) { notNull ( wildcardContext ) ; notNull ( allFiles ) ; return new WildcardFileFilter ( wildcardContext . getWildcard ( ) ) { @ Override public boolean accept ( final File file ) { final boolean accept = super . accept ( file ) ; if ( accept ) { LOG . debug ( "\tfound resource: {}" , file . getPath ( ) ) ; allFiles . add ( file ) ; } return accept ; } } ; }
Creates a {@link IOFileFilter} which collects found files into a collection and also populates a map with found
resources and corresponding files.

@param wildcardContext
@param allFiles - where all found files and folders are collected.
Creates a { @link IOFileFilter } which collects found files into a collection and also populates a map with found resources and corresponding files .