karelpeeters
04/29/2018, 9:03 PMThread.currentThread().getStackTrace(), get the second last element (hope the Kotlin compiler hasn't generated a bunch of synthetic stuff), .classname, look that up in the classloader ans then check if that class is annotated with @kotlin.Metadata.