public TextBuffer appendVariable(String value, boolean declaration, boolean parameter, String className, String methodName, MethodDescriptor methodDescriptor, int index, String name) {
    addToken(new VariableTextToken(length(), value.length(), declaration, parameter, className, methodName, methodDescriptor, index, name));
    return append(value);
  }
Allows to connect text with resulting lines

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