void (final String filePath, final TextFilePatch patch) { final VirtualFile root = getOrCreateProjectBaseDir(); PsiTestUtil.addContentRoot(myModule, root); VfsTestUtil.createFile(root, "platform/platform-impl/src/com/intellij/util/io/A.java"); VfsTestUtil.createFile(root, "platform/platform-impl/src/io/B.java"); VfsTestUtil.createFile(root, "platform/util-rt/src/com/intellij/util/io/C.java"); VfsTestUtil.createFile(root, "platform/testFramework/src/com/intellij/util/io/D.java"); VfsTestUtil.createFile(root, "platform/util/testSrc/com/intellij/openapi/util/io/E.java"); VfsTestUtil.createFile(root, "platform/util/testSrc/com/intellij/util/io/F.java"); VfsTestUtil.createFile(root, "platform/util/src/com/intellij/util/io/G.java"); VfsTestUtil.createFile(root, "a/platform/util/src/com/intellij/util/io/H.java"); VfsTestUtil.createFile(root, "platform/util/src/com/intellij/openapi/util/io/I.java"); VfsTestUtil.createFile(root, "platform/util/completely/different/folder/J.java"); MatchPatchPaths iterator = new MatchPatchPaths(myProject); List<AbstractFilePatchInProgress<?>> result = iterator.execute(Collections.singletonList(patch)); checkPath(result, filePath, Collections.singletonList(root), 0); }