def get_as_single_constant(self):
    repr = self.get_repr()
    if isinstance(repr, TypeConstant):
        return repr
    return None
def get_as_single_constant(self):
    repr = self.get_repr()
    if isinstance(repr, TypeConstant):
        return repr
    return None