@Override
      public void visitPyReferenceExpression(@NotNull PyReferenceExpression referenceExpression) {
        super.visitPyReferenceExpression(referenceExpression);
        if (!referenceExpression.isQualified()) {
          PyReferenceExpression unresolvedReference = unresolvedNames.get(referenceExpression.getName());
          if (unresolvedReference != null) {
            rememberNamedReferences(referenceExpression);
            restoreReference(referenceExpression, unresolvedReference, PsiElement.EMPTY_ARRAY);
          }
        }
      }
@Override
      public void visitPyReferenceExpression(@NotNull PyReferenceExpression referenceExpression)