code: def _find_workflows(mcs, attrs):
          
          workflows = {}
          for k, v in attrs.items():
              if isinstance(v, StateField):
                  workflows[k] = v
          return workflows
docs: Find workflow definition(s) in a WorkflowEnabled definition.
  
          This method overrides the default behavior from xworkflows in order to
          use our custom StateField objects.