void () { init(StringUtil.repeat("cheese\n", 9999)); // just below the limit for occurrences highlighting initFind(); setTextToFind("s"); assertEquals(9999 + 1 /* cursor highlighting */, getEditor().getMarkupModel().getAllHighlighters().length); getEditor().getCaretModel().moveToOffset(0); PlatformTestUtil.startPerformanceTest("typing in editor when a lot of search results are highlighted", 20000, () -> { for (int i = 0; i < 100; i++) { myFixture.type(' '); } }).assertTiming(); }