// "Replace Optional presence condition with functional style expression" "true-preview" import java.util.*; public class Main { public void testOptional(Optional str) { String val; if (str.isPresent()) { val = // line comment // another line comment str.get()//before trim .trim() /* block comment *//*block comment*/; } else { val = ""; } System.out.println(val); } }