void (String fileName, String toDirName) { doComparingDirectories(testDir -> { final Project project = myFixture.getProject(); final PsiManager manager = PsiManager.getInstance(project); final VirtualFile virtualFile = testDir.findFileByRelativePath(fileName); assertNotNull(virtualFile); PsiElement file = manager.findFile(virtualFile); if (file == null) { file = manager.findDirectory(virtualFile); } assertNotNull(file); final VirtualFile toVirtualDir = testDir.findFileByRelativePath(toDirName); assertNotNull(toVirtualDir); final PsiDirectory toDir = manager.findDirectory(toVirtualDir); new MoveFilesOrDirectoriesProcessor(project, new PsiElement[]{file}, toDir, false, false, null, null).run(); }); }