void () { doTest(""" class StringTemplateMigration { void test(String b) { System.out.println((true ? "a" : b) + <caret>"c"); } }""", """ class StringTemplateMigration { void test(String b) { System.out.println(STR."\\{true ? "a" : b}c"); } }"""); }