That's what you should do with its suggestion there, before the code having issue, just add this command there:
@kotlin.ExperimentalStdlibApi
Or you can upgrade your IntelliJ to latest version and it also solved this issue. I got same one there and both ways work for me.