public static void restoreNamedReferences(@NotNull final PsiElement element) {
    restoreNamedReferences(element, null);
  }
public static void restoreNamedReferences(@NotNull final PsiElement element)