public TextBuffer appendTypeName(String name, VarType type) {
    if (type.type == CodeType.OBJECT) {
      appendAllClasses(name, type.value);
      addGenericTypeTokens(length() - name.length(), name, type);

      return this;
    }

    return append(name);
  }
Allows to connect text with resulting lines

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