You're using a lot of reflection. Reflection is an advanced topic that it's early to be diving into if you're just now learning that Kotlin isn't Java, and you probably don't need for what you're doing. I sometimes see Javascript programmers trying to use it when they are just beginning with a strongly-typed language, but reflection should generally be avoided. You mostly see it in libraries for generating code or parsing JSON/XML/etc into classes. —
Tenfour04 20 secs ago