void (VirtualFile rootDir) { VirtualFile src = rootDir.findChild("src"); if (src == null) { super.prepareProject(rootDir); } else { PsiTestUtil.addContentRoot(myModule, rootDir); PsiTestUtil.addSourceRoot(myModule, src); } VirtualFile gen = rootDir.findChild("gen"); if (gen != null) { PsiTestUtil.addSourceRoot(myModule, gen, JavaSourceRootType.SOURCE, JpsJavaExtensionService.getInstance().createSourceRootProperties("", true)); } }