void () { doTest(""" class StringTemplateMigration { void test() { String test = "fun() = " + <caret>StringTemplateMigration.sum(7, 8) + "\\n" + "fun() = " + sum(9,10); } static int sum(int a, int b) { return a + b; } }""", """ class StringTemplateMigration { void test() { String test = STR.""\" fun() = \\{StringTemplateMigration.sum(7, 8)} fun() = \\{sum(9, 10)}""\"; } static int sum(int a, int b) { return a + b; } }"""); }