code: public static boolean matches(Pattern patternMatcher, Object... elements)
      {
          if (patternMatcher == null) {
              return true;
          }
  
          for (Object element : elements) {
              if (matches(patternMatcher, element)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Matches a set of elements in a case insensitive way.
  
  @param patternMatcher the pattern to match
  @param elements the elements to match
  @return true if one of the element is matched