IR compiler throws IllegalStateException: Not found Idx for public

Because I don’t want to spam this issue: Has anyone an idea, what’s the problem and whether there is a workaround? You can find the code of my [Matrix] Kotlin library Trixnity here. It seems to be an serializer generation issue of kotlinx.serialization, but I have no clue how to fix it.

I opened a new issue for that, because I think it is more related to kotlinx.serialization: @Contextual does not work with IR compiler · Issue #1584 · Kotlin/kotlinx.serialization · GitHub