private static @Nullable PsiElement resolveSimilarMember(@Nullable PyType similarOwnerType,
                                                           @NotNull String name,
                                                           @NotNull TypeEvalContext context) {
    if (similarOwnerType == null) return null;

    final PyResolveContext resolveContext = PyResolveContext.defaultContext(context);

    final List<? extends RatedResolveResult> results =
      similarOwnerType instanceof PyClassLikeType
      ? ((PyClassLikeType)similarOwnerType).resolveMember(name, null, AccessDirection.READ, resolveContext, false)
      : similarOwnerType.resolveMember(name, null, AccessDirection.READ, resolveContext);

    return takeTopPriorityElement(results);
  }
private static @Nullable PsiElement resolveSimilarMember(@Nullable PyType similarOwnerType,
                                                           @NotNull String name,
                                                           @NotNull TypeEvalContext context)