void (@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); } }