@Override
          public void visitPyElement(@NotNull PyElement element) {
            super.visitPyElement(element);
            if (element instanceof PyReferenceOwner) {
              final PyResolveContext resolveContext = PyResolveContext.defaultContext(myTypeEvalContext);
              final PsiPolyVariantReference reference = ((PyReferenceOwner)element).getReference(resolveContext);
              markTargetImportsAsUsed(reference);
            }
          }
@Override
          public void visitPyElement(@NotNull PyElement element)