move type name population out of TypePrinting class into a static