public TextBuffer addClassToken(int index, int length, String name) {
    addToken(new ClassTextToken(index, length, false, name));
    return this;
  }
Allows to connect text with resulting lines

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