// "Assign parameter to field 'myStr'" "true-preview" class Foo1 { final String myStr; Foo1(String str) { myStr = str; if(Math.random() > 0.5) { } else { } } }