@NotNull
  private static List<RatedResolveResult> resolveMemberFromReferenceTypeProviders(@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();
  }
@NotNull
  private static List<RatedResolveResult> resolveMemberFromReferenceTypeProviders(@NotNull PsiElement parent,
                                                                                  @NotNull String referencedName)