void () { init("<caret>first line\nsecond line"); initFind(); setTextToFind("line"); checkResultByText("first <selection>line</selection>\nsecond line"); getEditor().getFoldingModel().runBatchFoldingOperation(() -> getEditor().getFoldingModel().addFoldRegion(0, 11, "...").setExpanded(false)); checkResultByText("<caret>first line\nsecond line"); nextOccurrence(); checkResultByText("first <selection>line</selection>\nsecond line"); nextOccurrence(); checkResultByText("first line\nsecond <selection>line</selection>"); }