void () { doTest(""" class StringTemplateMigration { void test() { final String action = "Hello"; String name = "World"; String test = action + <caret>" " + // comment 1 name + /* comment 2 */ "!" /* comment 3 */ + "!" + /** comment 4 */ "!"; } }""", """ class StringTemplateMigration { void test() { final String action = "Hello"; String name = "World"; // comment 1 /* comment 2 */ /* comment 3 */ /** comment 4 */ String test = STR."\\{action} \\{name}!!!"; } }"""); }