code: static private boolean hasFileMatch(String path, List<String> patterns) {
          path = Util.normalizeDriveLetter(path);
          for (String p : patterns) {
              // Exact match
              if (p.equals(path)) {
                  return true;
              }
              // Single dot the end matches this package and all its subpackages.
              if (p.startsWith("*")) {
                  // Remove the wildcard
                  String patsuffix = p.substring(1);
                  // Does the path start with the pattern prefix?
                  if (path.endsWith(patsuffix)) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: The pattern */bar.java matches foo/bar.java and zoo/bar.java etc