void () { final VirtualFile root = getOrCreateProjectBaseDir(); PsiTestUtil.addContentRoot(myModule, root); VfsTestUtil.createDir(root, "module-1/src/com/intellij/openapi/colors"); VfsTestUtil.createDir(root, "module-2/src/com/intellij/openapi/editor"); VfsTestUtil.createDir(root, "module-3/src/com/intellij/openapi/modules"); VfsTestUtil.createDir(root, "platform-tests/testSrc/com/intellij/openapi/editor"); TextFilePatch patch = createFileAddition("module-new/src/com/intellij/openapi/tests/SomeNewFile.java"); final MatchPatchPaths iterator = new MatchPatchPaths(myProject); final List<AbstractFilePatchInProgress<?>> result = iterator.execute(Collections.singletonList(patch)); checkPath(result, "module-new/src/com/intellij/openapi/tests/SomeNewFile.java", Collections.singletonList(root), 0); }