List<PsiElement> (@NotNull PyResolveContext resolveContext) { final TypeEvalContext context = resolveContext.getTypeEvalContext(); if (context.maySwitchToAST(this)) { final PyExpression value = findAssignedValue(); return value != null ? ContainerUtil.filter(PyUtil.multiResolveTopPriority(value, resolveContext), Objects::nonNull) : Collections.emptyList(); } else { final QualifiedName qName = getAssignedQName(); if (qName != null && qName.getComponentCount() != 0) { final ScopeOwner owner = ScopeUtil.getScopeOwner(this); if (owner != null) { return PyResolveUtil.resolveQualifiedNameInScope(qName, owner, context); } } return Collections.emptyList(); } }