public TextBuffer appendClass(String value, boolean declaration, String qualifiedName) {
    addToken(new ClassTextToken(length(), value.length(), declaration, qualifiedName));
    return append(value);
  }
Allows to connect text with resulting lines

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