code: public boolean contains(Object o) {
      if (o instanceof String) {
        return set.contains(((String) o).toLowerCase());
      } else {
        return set.contains(o);
      }
    }
docs: Returns true if this set contains the specified string, compared case-insensitively.