def METHOD_NAME(self, formatter):
    for device, _ in self.getDeviceImpl():
        formatter.addCode('{engine}'.format(engine=self.engine), True)
        if device:
            formatter.addRaw(' on ')
            formatter.addEmphasis("{device}".format(device=device), 1)