def METHOD_NAME(tree, *, parent_tree=None):  # noqa: ANN001,ANN205
    """Return a list of :class:`.MoreComments` objects obtained from tree."""
    more_comments = []
    queue = [(None, x) for x in tree]
    while queue:
        parent, comment = queue.pop(0)
        if isinstance(comment, MoreComments):
            heappush(more_comments, comment)
            if parent:
                comment._remove_from = parent.replies._comments
            else:
                comment._remove_from = parent_tree or tree
        else:
            for item in comment.replies:
                queue.append((comment, item))
    return more_comments