void () { doTest(InspectionGadgetsBundle.message("conditional.can.be.pushed.inside.expression.quickfix"), """ class X { String foo(boolean b) { return b/*c0*/ ? String.v<caret>alueOf(new Double(0)) //c1 : String.valueOf(new Double(1.2))//c2 ; } }""", """ class X { String foo(boolean b) { /*c0*/ //c1 return String.valueOf(new Double(b ? 0 : 1.2))//c2 ; } }"""); }