public static Set<String> newHashSet(String... strings) {HashSet<String> set = new HashSet<String>();
for (String s : strings) {set.add(s);}return set;}
public static final <T> Set<T> makeSet(@SuppressWarnings("unchecked") T... o) {return new HashSet<T>() {private static final long serialVersionUID = -3634958843858172518L;{for (T x : o)add(x);}};}
// Initialize default values with the method you prefer, even in a static block// It's a good idea to make sure these defaults aren't modifiableprivate final static Set<String> DEFAULT_VALUES = Collections.unmodifiableSet(...);private Set<String> values = DEFAULT_VALUES;