void (PsiElement[] packagesAndClasses, String newPackageName) { PsiPackage newParentPackage = myFixture.findPackage(newPackageName); assertNotNull(newParentPackage); final PsiDirectory[] dirs = newParentPackage.getDirectories(); assertEquals(1, dirs.length); new MoveClassesOrPackagesProcessor(getProject(), packagesAndClasses, new SingleSourceRootMoveDestination(PackageWrapper.create(newParentPackage), dirs[0]), true, false, null).run(); }