void (@NotNull Consumer<VirtualFile> testDirConsumer) { final String root = "/refactoring/move/" + getTestName(true); final String rootBefore = root + "/before/src"; final String rootAfter = root + "/after/src"; final VirtualFile testDir = myFixture.copyDirectoryToProject(rootBefore, ""); PsiDocumentManager.getInstance(myFixture.getProject()).commitAllDocuments(); testDirConsumer.consume(testDir); final VirtualFile expectedDir = getVirtualFileByName(PythonTestUtil.getTestDataPath() + rootAfter); try { PlatformTestUtil.assertDirectoriesEqual(expectedDir, testDir); } catch (IOException e) { throw new RuntimeException(e); } }