void () { configure(""" import java.util.List; import java.util.Map; <caret> class Foo { List a; Map b; } """); assertNotNull(myFixture.getEditor().getFoldingModel().getCollapsedRegionAtOffset(10)); myFixture.type("import "); myFixture.doHighlighting(); assertNull(myFixture.getEditor().getFoldingModel().getCollapsedRegionAtOffset(46)); }