@classmethod
def _flatten_task_chunk(cls, nested_task_chunk: list) ->list:
    """Recursively converts a nested task list to a flat list."""
    flat_task_chunk = []
    for elem in nested_task_chunk:
        if isinstance(elem, list):
            flat_task_chunk.extend(cls._flatten_task_chunk(elem))
        else:
            flat_task_chunk.append(elem)
    return flat_task_chunk
