void () { final VirtualFile root = getOrCreateProjectBaseDir(); PsiTestUtil.addContentRoot(myModule, root); VfsTestUtil.createDir(root, "editor-ui-ex/src/com/intellij/openapi/editor/colors"); VfsTestUtil.createDir(root, "platform-api/src/com/intellij/openapi/editor/colors"); VfsTestUtil.createDir(root, "lang-impl/src/com/intellij/openapi/options/colors"); VfsTestUtil.createDir(root, "platform-tests/testSrc/com/intellij/openapi/editor"); final MatchPatchPaths iterator = new MatchPatchPaths(myProject); String prefix = "community/platform/"; String path = "platform-tests/testSrc/com/intellij/openapi/editor/colors/A.java"; TextFilePatch patch = create(prefix + path); final List<AbstractFilePatchInProgress<?>> result = iterator.execute(Collections.singletonList(patch)); checkPath(result, path, Collections.singletonList(root), StringUtil.split(prefix, "/").size()); }