def METHOD_NAME(self, tvRowId, tvColId):
    # override tool tip when appropriate
    if tvColId == "#0":
        try:
            modelObject = self.modelXbrl.modelObject(tvRowId)
            if isinstance(modelObject, ModelRelationship):
                modelObject = modelObject.toModelObject
            return modelObject.xmlElementView
        except (AttributeError, KeyError):
            pass
    return None