static void toJavaType(@NotNull StringBuilder sb, Type type, @NotNull TypeInfoProvider mapping) {
    int dimensions = 0;
    if (type.getSort() == Type.ARRAY) {
      dimensions = type.getDimensions();
      type = type.getElementType();
    }
    sb.append(type.getSort() == Type.OBJECT ? mapping.toTypeInfo(type.getInternalName()).text() : type.getClassName());
    while (dimensions-- > 0) {
      sb.append("[]");
    }
  }
static void toJavaType(@NotNull StringBuilder sb, Type type, @NotNull TypeInfoProvider mapping)