code: public static boolean matches(Collection<PathPattern> patterns, List<String> path) {
  		for (PathPattern pattern : patterns)
  			if (pattern.matches(path))
  				return true;
  		return false;
  	}
docs: Return true if the given path elements match at least one of the given pattern.