// "Wrap with unmodifiable set" "true-preview" import java.util.Set; import java.util.HashSet; class C { Set test() { Set result = new HashSet<>(); return result; } }