public static void restoreNamedReferences(@NotNull final PsiElement newElement, @Nullable final PsiElement oldElement) {
    restoreNamedReferences(newElement, oldElement, PsiElement.EMPTY_ARRAY);
  }
public static void restoreNamedReferences(@NotNull final PsiElement newElement, @Nullable final PsiElement oldElement)