def METHOD_NAME(content: ExecutableContent) -> List[Volume]:
    volumes = []
    for volume in content.volumes:
        if isinstance(volume, ImmutableVolume):
            volumes.append(volume)
    if isinstance(content, ProgramContent):
        volumes += [content.code, content.runtime]
        if content.data:
            volumes.append(content.data)
    elif isinstance(content, InstanceContent):
        if parent := content.rootfs.parent:
            volumes.append(parent)
    return volumes