[Java] Class TreeUtils