void () { String text = "class <caret>X { " + """ { // String x = "<zzzzzzzzzz/>"; }""".repeat(100) + "\n}"; configureByText(JavaFileType.INSTANCE, text); ((EditorImpl)myEditor).getScrollPane().getViewport().setSize(1000, 1000); DaemonCodeAnalyzerSettings.getInstance().setImportHintEnabled(true); assertEmpty(highlightErrors()); type("//"); List<HighlightInfo> errors = highlightErrors(); assertEquals(2, errors.size()); backspace(); backspace(); assertEmpty(highlightErrors()); }