void () { //noinspection UnnecessaryStringEscape configureFromFileText("TrailingWhitespace.java", """ class TextBlockMigration { String multipleLiterals() { return ""\"<caret> \t\f hello \t\f world \t\f ""\"; } }"""); final IntentionAction action = findActionWithText("Replace with regular string literal"); invoke(action); checkResultByText(""" class TextBlockMigration { String multipleLiterals() { return "hello\\n" + "world\\n"; } }"""); }