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