VirtualFile (@NotNull Project project, @Nullable Module module, @Nullable String rootPath, boolean addProjectRoots) { VirtualFile file = createTestProjectStructure(module, rootPath, addProjectRoots, getTempDir()); PsiDocumentManager.getInstance(project).commitAllDocuments(); return file; }