void () { String before = """ public class Test { int a; \s public static void main(String[] args) { <caret> } static final long j = 2; }"""; String after = """ public class Test { int a; public static void main(String[] args) { <caret> } static final long j = 2; }"""; doTest(before, after); before = """ public class Test { int a; \s public static void main(String[] args) { <caret> \s } static final long j = 2; }"""; doTest(before, after); }