void (MultiMap<PsiElement, @DialogMessage String> conflicts, PsiElement[] elementsToMove, UsageInfo[] usages, PsiDirectory targetDirectory) { PsiPackage aPackage = JavaDirectoryService.getInstance().getPackage(targetDirectory); if (aPackage != null) { PackageWrapper packageWrapper = new PackageWrapper(aPackage); MoveClassesOrPackagesProcessor.detectConflicts(usages, conflicts, elementsToMove, packageWrapper, new SingleSourceRootMoveDestination(packageWrapper, targetDirectory)); } }