@Override
    protected void elementFinished(@NotNull ASTNode e) {
      PsiElement psiElement = extra != null && usePsi && e instanceof CompositeElement ? e.getPsi() : null;
      if (psiElement != null) {
        Consumer<PsiElement> consumer = element ->
          treeToBuffer(buffer, element.getNode(), indent, showWhitespaces, showRanges, showChildrenRanges, showClassNames, true, null);
        extra.consume(psiElement, consumer);
      }
      indent -= 2;
    }
@Override
    protected void elementFinished(@NotNull ASTNode e)