public static String indent(final int depth){
  if (depth < 0) {
    return "";
  }
  return ws.substring(0,Math.min(ws.length(),depth * 2));
}

public static String indent ( final int depth ) { if ( depth < 0 ) { return "" ; } return ws . substring ( 0 , Math . min ( ws . length ( ) , depth * 2 ) ) ; }
returns a string that may be used to indent a dump of the nodes in the tree . < p > note : the string is capped out after a maximum supported depth .
