void () { @SuppressWarnings("ALL") @Language("JAVA") String text = """ class Foo { int arrayMethod(int param)[] { return new int[0]; } }"""; configure(text); assertEquals(1, myFixture.getEditor().getFoldingModel().getAllFoldRegions().length); }