void (final String targetDirName, final Computable<PsiElement> source, final boolean expected) { VirtualFile rootDir = myFixture.copyDirectoryToProject(getTestName(true), ""); final VirtualFile child1 = rootDir.findChild(targetDirName); assertNotNull("File " + targetDirName + " not found", child1); final PsiDirectory targetDirectory = getPsiManager().findDirectory(child1); assertEquals(expected, MoveHandler.isMoveRedundant(source.compute(), targetDirectory)); }