pakoito
list.flatMap(optional -> optional.fold({listOf()}, {listOf(it)})).let { if (it.isEmpty()) { none() } else { it.some() } }