VirtualFile (String name) { try { String moduleDescriptorFilename = name+ ".xml"; VirtualFile moduleRoot = myFixture.getTempDirFixture().findOrCreateDir(name); VirtualFile file = myFixture.copyFileToProject(moduleDescriptorFilename, "/" + name + "/" + moduleDescriptorFilename); Module dependencyModule = PsiTestUtil.addModule(getProject(), StdModuleTypes.JAVA, name, moduleRoot); ModuleRootModificationUtil.setModuleSdk(dependencyModule, IdeaTestUtil.getMockJdk17()); ModuleRootModificationUtil.addDependency(getModule(), dependencyModule); return file; } catch (IOException e) { throw new RuntimeException(e); } }