@@ -0,0 +1,1575 @@
+package hu.webarticum.treeprinter.decorator;%0A%0Aimport hu.webarticum.treeprinter.TreeNode;%0Aimport hu.webarticum.treeprinter.text.ConsoleText;%0A%0A/**%0A * %7B@link TreeNode%7D decorator implementation that clears all ANSI formatters from the node.%0A */%0Apublic class ClearAnsiFormatTreeNodeDecorator extends AbstractTreeNodeDecorator %7B%0A%0A    public ClearAnsiFormatTreeNodeDecorator(TreeNode baseNode) %7B%0A        this(baseNode, builder());%0A    %7D%0A%0A    private ClearAnsiFormatTreeNodeDecorator(TreeNode baseNode, Builder builder) %7B%0A        super(baseNode, builder.inherit, builder.decorable);%0A    %7D%0A%0A    public static Builder builder() %7B%0A        return new Builder();%0A    %7D%0A    %0A    %0A    @Override%0A    public ConsoleText decoratedContent() %7B%0A        return ConsoleText.of(baseNode.content().plain());%0A    %7D%0A%0A    @Override%0A    protected TreeNode wrapChild(TreeNode childNode, int index) %7B%0A        return builder()%0A                .decorable(decorable)%0A                .inherit(inherit)%0A                .buildFor(childNode);%0A    %7D%0A%0A    %0A    public static class Builder %7B%0A        %0A        private boolean inherit = true;%0A%0A        private boolean decorable = true;%0A        %0A%0A        public Builder inherit(boolean inherit) %7B%0A            this.inherit = inherit;%0A            return this;%0A        %7D%0A%0A        public Builder decorable(boolean decorable) %7B%0A            this.decorable = decorable;%0A            return this;%0A        %7D%0A%0A        public ClearAnsiFormatTreeNodeDecorator buildFor(TreeNode node) %7B%0A            return new ClearAnsiFormatTreeNodeDecorator(node, this);%0A        %7D%0A        %0A    %7D%0A%7D%0A

Add ClearAnsiFormatTreeNodeDecorator