Use generic type comments when parsing class