void () { // Inspired by IDEA-55782 getSettings().RIGHT_MARGIN = 20; getSettings().WRAP_LONG_LINES = true; String initial = """ class TestClass { //This is a comment //This is another comment }"""; //int start = initial.indexOf("//"); //int end = initial.indexOf("comment"); //myTextRange = new TextRange(start, end); //doTextTest(initial, initial); myLineRange = new TextRange(1, 1); doTextTest( initial, """ class TestClass { //This is a\s // comment //This is another comment }""" ); }