public static void prepareAliasingPsiTargetRenaming(@NotNull AliasingPsiTarget aliasingPsiTarget,
                                                      @NotNull String newName,
                                                      @NotNull Map<PsiElement, String> allRenames) {
    PsiElement psiElement = aliasingPsiTarget.getNavigationElement();
    if (psiElement instanceof PsiNamedElement) {
      String newTargetName = aliasingPsiTarget.getTargetName(newName);
      if (!newTargetName.equals(((PsiNamedElement)psiElement).getName())) {
        allRenames.put(psiElement, newTargetName);
      }
    }
  }
public static void prepareAliasingPsiTargetRenaming(@NotNull AliasingPsiTarget aliasingPsiTarget,
                                                      @NotNull String newName,
                                                      @NotNull Map<PsiElement, String> allRenames)