private final StringBuilder buffer = new StringBuilder();
private final AbstractStyledTextOutput original;
private Node current;
public TreeFormatter() {
original = new AbstractStyledTextOutput() {
@Override
protected void doAppend(String text) {
buffer.append(text);
}
};