static TreeSet toCaseInsensitiveSet(Collection c) { // TODO: check if it already is a CI set TreeSet set = caseInsensitiveSet(); if (c != null) set.addAll(c); ret set; } static TreeSet toCaseInsensitiveSet(S... x) { TreeSet set = caseInsensitiveSet(); addAll(set, x); ret set; }