Task instance representing 'task', if any

def resolved_task(cls, task):
        """Task instance representing 'task', if any"""
        for t in cls.tasks:
            if t is task or t.execute is task:
                return t