// "Replace with 'Set.of()' call" "false" import java.util.Collections; import java.util.HashSet; import java.util.Set; public class Test { static Set WRONG_SET = new HashSet<>(); public static final Set MY_SET = Collections.unmodifiableSet(new HashSet() {{ add("a"); add("b"); WRONG_SET.add("c".toUpperCase()); }}); }