void () { @Language("JAVA") String text = """ class Foo { // 0 // 1 // region Some // 2 // 3 next empty line is significant // non-dangling int t = 1; // 4 // 5 // endregion // 6 // 7 } """; configure(text); assertFolding("// region"); assertFolding("// 0"); assertFolding("// 2");// Note: spans only two lines, see next test for details assertFolding("// 4"); assertFolding("// 6"); assertEquals(5, getFoldRegionsCount()); }