public boolean accept(final File file) {
    if (!isIncludesAny()) {
      if (getIncludes() != null) {
        if (!match(file, getIncludes(), false)) {
          return false;
        }
      }
    }
    if (isExcludesAny()) {
      return false;
    }
    if (getExcludes() != null) {
      if (match(file, getExcludes(), true)) {
        return false;
      }
    }
    return true;
  }