void () { @Language("JAVA") String text = """ class Foo { //********************************************* // region Some //********************************************* int t = 1; //********************************************* // endregion //********************************************* } """; configure(text); FoldingModelImpl foldingModel = (FoldingModelImpl)myFixture.getEditor().getFoldingModel(); assertEquals(1, getFoldRegionsCount()); assertEquals("Some", foldingModel.getAllFoldRegions()[0].getPlaceholderText()); }