def METHOD_NAME(cls, obj):
    from readthedocs.organizations.models import Organization
    from readthedocs.projects.models import Project
    if isinstance(obj, Project):
        return obj.users.all()
    if isinstance(obj, Organization):
        return obj.owners.all()