def METHOD_NAME(self, widget):
    device = widget.get("device")
    assessment = widget.get("assessment")
    if self.show_names:
        widget.full_text("{}: {}".format(device, assessment))
    else:
        widget.full_text("{}".format(assessment))