@Override
  public void retargetUsages(List<UsageInfo> usages, Map<PsiElement, PsiElement> oldToNewMap) {
    List<UsageInfo> usageInfosToProcess = ContainerUtil.filter(usages, usageInfo -> {
      if (usageInfo instanceof MoveRenameUsageInfo moveRenameUsageInfo) {
        final PsiElement referencedElement = moveRenameUsageInfo.getReferencedElement();
        if (referencedElement == null) return false;
        return referencedElement.getContainingFile() instanceof PsiJavaFile;
      }
      else {
        return false;
      }
    });
    CommonMoveUtil.retargetUsages(usageInfosToProcess.toArray(UsageInfo.EMPTY_ARRAY), oldToNewMap);
    usages.removeAll(usageInfosToProcess);
  }
@Override
  public void retargetUsages(List<UsageInfo> usages, Map<PsiElement, PsiElement> oldToNewMap)