public TextBuffer appendMethod(String value, boolean declaration, String className, String name, String descriptor) {
    return appendMethod(value, declaration, className, name, MethodDescriptor.parseDescriptor(descriptor));
  }
Allows to connect text with resulting lines

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