// "Replace with 'Set.of()' call" "true" import java.util.*; public class Test { private static final Set MY_SET; static { Set set = new HashSet<>(); set.add("foo"); set.add("bar"); set.add("xyz"); MY_SET = Collections.unmodifiableSet(set); } }