void () { @SuppressWarnings("ALL") @Language("JAVA") String text = """ class Foo { void m() { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { System.out.println(); } }); } } """; configure(text); assertTopLevelFoldRegionsState("[FoldRegion +(56:143), placeholder='(Runnable) () → { ', FoldRegion +(164:188), placeholder=' }']"); myFixture.getEditor().getCaretModel().moveToOffset(myFixture.getEditor().getDocument().getText().indexOf("SwingUtilities")); myFixture.type(" "); myFixture.doHighlighting(); assertTopLevelFoldRegionsState("[FoldRegion +(57:144), placeholder='(Runnable) () → { ', FoldRegion +(165:189), placeholder=' }']"); }