void () { DaemonRespondToChangesTest.useAnnotatorsIn(JavaFileType.INSTANCE.getLanguage(), new DaemonRespondToChangesTest.MyRecordingAnnotator[]{new MyErrorAnnotator(), new MyWarningAnnotator()}, () -> { configureFromFileText("My.java", "class My {}"); ((EditorEx)getEditor()).getScrollPane().getViewport().setSize(new Dimension(1000,1000)); // whole file fit onscreen List<HighlightInfo> infos = doHighlighting(HighlightSeverity.WARNING); HighlightInfo info = assertOneElement(infos); MyErrorAnnotator.assertMy(info); }); }