Is it possible to use `expect` and `actual` for code generation purpose?

I have simple code generator based on KSP:

object SomeHandler {
    fun createInstance() {
        // some internal actions
        LuaGenerated.init(/* some parameters */)
        // some internal actions
    }
    /* some other codes */
}

The body of LuaGenerated.init function is generated by KSP.
I want to combine those two class into single class for better code visibility.
I saw expect and actual keyword which used on Kotlin multiplatform that can achieve my issue by this:
SomeHandler.kt

expect object SomeHandler {
    fun createInstance() { /* some codes */ }
    expect init()
}

SomeHandlerGenerated.kt

actual object SomeHandler {
    actual init() { /* generated code */ }
}

Is it possible to make expect and actual keyword on my android application or any other alternative exists?

Thanks