@Nullable
  public static PsiElement resolveMemberByName(@NotNull Collection<? extends PyCustomMember> members,
                                               @NotNull String name,
                                               @NotNull PsiElement context,
                                               @NotNull PyResolveContext resolveContext) {
    for (PyCustomMember member : members) {
      if (member.getName().equals(name)) {
        return member.resolve(context, resolveContext);
      }
    }
    return null;
  }
@Nullable
  public static PsiElement resolveMemberByName(@NotNull Collection<? extends PyCustomMember> members,
                                               @NotNull String name,
                                               @NotNull PsiElement context,
                                               @NotNull PyResolveContext resolveContext)