static void detectPackageLocalsUsed(MultiMap<PsiElement, @DialogMessage String> conflicts,
                                      PsiElement[] elementsToMove,
                                      PackageWrapper targetPackage) {
    PackageLocalsUsageCollector visitor = new PackageLocalsUsageCollector(elementsToMove, targetPackage, conflicts);

    for (PsiElement element : elementsToMove) {
      if (element.getContainingFile() != null) {
        element.accept(visitor);
      }
    }
  }
static void detectPackageLocalsUsed(MultiMap<PsiElement, @DialogMessage String> conflicts,
                                      PsiElement[] elementsToMove,
                                      PackageWrapper targetPackage)