code: public static boolean containsIgnoreCase(Collection<String> c, String s) {
      for (String squote: c) {
        if (squote.equalsIgnoreCase(s))
          return true;
      }
      return false;
    }
docs: Convenience method: a case-insensitive variant of Collection.contains
  @param c Collection&lt;String&gt;
  @param s String
  @return true if s case-insensitively matches a string in c