def get_type_id(self, version: int, returnTypeId: str) -> str:
    assert (version >= 2)
    nextReturnTypeId = ''
    if self.volatile:
        nextReturnTypeId += 'V'
    if self.const:
        nextReturnTypeId += 'K'
    nextReturnTypeId += 'M'
    nextReturnTypeId += self.className.get_id(version)
    nextReturnTypeId += returnTypeId
    return self.next.get_type_id(version, nextReturnTypeId)
def get_type_id(self, version: int, returnTypeId: str) -> str:
    assert (version >= 2)
    nextReturnTypeId = 
    if self.volatile:
        nextReturnTypeId += 'V'
    if self.const:
        nextReturnTypeId += 'K'
    nextReturnTypeId += 'M'
    nextReturnTypeId += self.className.get_id(version)
    nextReturnTypeId += returnTypeId
    return self.next.get_type_id(version, nextReturnTypeId)