Editor (@NotNull String relativePath, @NotNull String fileText) { Editor editor = createEditor(VfsTestUtil.createFile(getSourceRoot(), relativePath, fileText)); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); getIndexingMode().ensureIndexingStatus(getProject()); return editor; }