void (String moduleName) { String testName = getTestName(true); final VirtualFile dependencyModuleRoot = myFixture.copyDirectoryToProject("/" + testName + "/" + moduleName, "/" + moduleName); Module dependencyModule = PsiTestUtil.addModule(getProject(), StdModuleTypes.JAVA, moduleName, dependencyModuleRoot); PsiTestUtil.addLibrary(dependencyModule, "editor-ui-api", PathUtil.getJarPathForClass(AnAction.class)); }