code: public boolean accepts(String path) {
          boolean result;
          if (includeFilePatterns != null) {
              result = matches(path, includeFilePatterns);
          } else {
              result = true;
          }
          if (excludeFilePatterns != null) {
              result = result && !matches(path, excludeFilePatterns);
          }
          return result;
      }
docs: Determines if the given path matches the configured include and exclude
  patterns.
  
  NOTE: The include pattern is evaluated before the exclude pattern.
  
  @param path
  The path.
  @return <code>true</code> if the path matches.