void () { String text = """ class LQF { public void main() { int wwwwwwwwwwww = 1<caret> } }"""; configureByText(JavaFileType.INSTANCE, text); ((EditorImpl)myEditor).getScrollPane().getViewport().setSize(1000, 1000); assertOneElement(highlightErrors()); type(';'); assertEmpty(highlightErrors()); }