code simplification: use addIndented() API