void () { Runnable runnable = () -> { String specialSymbol = "\\" + symbol; String ourIntentionName = "Inline value '"; String before = "class C { " + " void test() {" + " String s = f(\"" + specialSymbol + "\");" + " }" + " String f(String <caret>p) {" + " return \"123\" + p;" + " }" + "}"; myFixture.configureByText("C.java", before); final IntentionAction singleIntention = myFixture.findSingleIntention(ourIntentionName); myFixture.launchAction(singleIntention); String after = "class C { " + " void test() {" + " String s = f();" + " }" + " String f() {" + " return \"123\" + \"" + afterSymbol(specialSymbol) + "\";" + " }" + "}"; myFixture.checkResult(after); }; doTest(runnable); }