@SuppressWarnings("DeprecatedIsStillUsed")
  @Deprecated
  public static @NotNull String parseTypeString(CharacterIterator signature, Function<? super String, String> mapping) throws ClsFormatException {
    StringBuilder sb = new StringBuilder();
    int pos = signature.getIndex();
    while(true) {
      char ch = signature.current();
      if (ch == CharacterIterator.DONE) {
        break;
      }
      sb.append(ch);
      signature.next();
    }
    CharIterator iterator = new CharIterator(sb.toString());
    String result = parseTypeStringToTypeInfo(iterator, TypeInfoProvider.from(mapping)).text();
    signature.setIndex(iterator.pos() + pos);
    return result;
  }
@SuppressWarnings("DeprecatedIsStillUsed")
  @Deprecated
  public static @NotNull String parseTypeString(CharacterIterator signature, Function<? super String, String> mapping)