@Nullable
  @Contract("null -> null; !null -> !null")
  public static Ref<PyType> notNullToRef(@Nullable PyType type) {
    return type == null ? null : Ref.create(type);
  }
@Nullable
  @Contract("null -> null; !null -> !null")
  public static Ref<PyType> notNullToRef(@Nullable PyType type)