List<RatedResolveResult> (@NotNull PsiElement parent, @NotNull String referencedName) { final var context = TypeEvalContext.codeInsightFallback(parent.getProject()); final Ref<PyType> refType = PyReferenceExpressionImpl.getReferenceTypeFromProviders(parent, context, null); if (refType != null && !refType.isNull()) { final PyResolveContext resolveContext = PyResolveContext.defaultContext(context); final List<? extends RatedResolveResult> result = refType.get().resolveMember(referencedName, null, AccessDirection.READ, resolveContext); if (result != null) { return Lists.newArrayList(result); } } return Collections.emptyList(); }