addOrNull

fun addOrNull(index: Int, element: E): Unit?
fun addOrNull(index: PositiveInt, element: E): Unit?
fun addOrNull(index: StrictlyPositiveInt, element: E): Unit?

Inserts the element into this list at the specified index, or returns null if the index is out of bounds.