VirtualFile (Module m, DependencyScope scope) { VirtualFile libraryRoot = myFixture.findOrCreateDir("lib"); ModuleRootModificationUtil.addModuleLibrary(m, "l", Collections.singletonList(libraryRoot.getUrl()), Collections.emptyList(), scope); return libraryRoot; }