@NotNull
  public static StreamEx<PyType> toStream(@Nullable PyType type) {
    if (type instanceof PyUnionType) {
      return StreamEx.of(((PyUnionType)type).getMembers());
    }
    return StreamEx.of(type);
  }
@NotNull
  public static StreamEx<PyType> toStream(@Nullable PyType type)