I second Nat's answer, except I would use a loop instead of creating and immediately tossing the implicit List from asList(elements):
static public Set<T> setOf(T ... elements) {
Set set=new HashSet<T>(elements.size());
for(T elm: elements) { set.add(elm); }
return set;
}