void (final String targetDirName, final String fileToMove) { doTest(() -> { final VirtualFile child = myFixture.findFileInTempDir(fileToMove); assertNotNull("File " + fileToMove + " not found", child); PsiFile file = getPsiManager().findFile(child); final VirtualFile child1 = myFixture.findFileInTempDir(targetDirName); assertNotNull("File " + targetDirName + " not found", child1); final PsiDirectory targetDirectory = getPsiManager().findDirectory(child1); new MoveFilesOrDirectoriesProcessor(getProject(), new PsiElement[]{file}, targetDirectory, false, false, null, null).run(); }); }