public TextBuffer addTypeNameToken(VarType type, int index) {
    if (type.type == CodeType.OBJECT) {
      String name = ExprProcessor.getTypeName(type);
      addAllClassTokens(index, name, type.value);
      addGenericTypeTokens(index, name, type);
    }

    return this;
  }
Allows to connect text with resulting lines

@author egor
src/org/jetbrains/java/decompiler/util/TextBuffer.java