void () { @org.intellij.lang.annotations.Language("JAVA") String text = """ class X { //XXX } """; configureFromFileText("x.java", text); ((EditorImpl)getEditor()).getScrollPane().getViewport().setSize(1000, 1000); @NotNull Editor editor = getEditor(); assertEquals(getFile().getTextRange(), editor.calculateVisibleRange()); CodeInsightTestFixtureImpl.ensureIndexesUpToDate(getProject()); TextEditor textEditor = TextEditorProvider.getInstance().getTextEditor(getEditor()); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(getProject())) .runPasses(getFile(), getEditor().getDocument(), textEditor, ArrayUtilRt.EMPTY_INT_ARRAY, false, null); }