@ApiStatus.Internal
  @NotNull
  public static Generics collectGenerics(@Nullable PyType type, @NotNull TypeEvalContext context) {
    final var result = new Generics();
    collectGenerics(type, context, result, new HashSet<>());
    return result;
  }
@ApiStatus.Internal
  @NotNull
  public static Generics collectGenerics(@Nullable PyType type, @NotNull TypeEvalContext context)