private static void decodeRefs(@NotNull PsiElement element,
                                 final Map<PsiClass, PsiClass> oldToNewMap,
                                 final Set<? super PsiElement> rebindExpressions) {
    final Map<PsiJavaCodeReferenceElement, PsiElement> rebindMap = new LinkedHashMap<>();
    element.accept(new JavaRecursiveElementVisitor() {
      @Override
      public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement reference) {
        super.visitReferenceElement(reference);
        decodeRef(reference, oldToNewMap, rebindMap);
      }
    });
    for (Map.Entry<PsiJavaCodeReferenceElement, PsiElement> entry : rebindMap.entrySet()) {
      rebindExpressions.add(entry.getKey().bindToElement(entry.getValue()));
    }
    rebindExternalReferences(element, oldToNewMap, rebindExpressions);
  }
private static void decodeRefs(@NotNull PsiElement element,
                                 final Map<PsiClass, PsiClass> oldToNewMap,
                                 final Set<? super PsiElement> rebindExpressions)