Update: I think I might be overcomplicating what I want to do again - I want to use the Kotlin/Java reflection API, but since I'm reading Kotlin files, they turn into String text and I think I need to compile them at runtime... probably as kts files.... this sounds like it's too much work but I'm not sure if there's a better way. I guess I can go with the bad idea and see what works