public static boolean hasGenerics(@Nullable PyType type, @NotNull TypeEvalContext context) {
    return !collectGenerics(type, context).isEmpty();
  }
public static boolean hasGenerics(@Nullable PyType type, @NotNull TypeEvalContext context)