void () { String text = """ some<caret> text<caret> some <selection><caret>other</selection> <selection>text<caret></selection> <selection>ano<caret>ther</selection> line"""; PsiFile psiFile = myFixture.configureByText(PlainTextFileType.INSTANCE, text); VirtualFile virtualFile = psiFile.getVirtualFile(); assertNotNull(virtualFile); openFile(virtualFile); FileEditorManagerEx.getInstanceEx(getProject()).closeAllFiles(); Editor editor = openFile(virtualFile); verifyEditorState(editor, text); }