"Expecting top level declaration" on all import lines

Hello!
I’m new to Kotlin, and i want create a Discord bot using JDA and Maven. I tried to add an better command handler (with some lists) but now, i can’t compile it anymore. Why?
[ERROR] /home/zagrion3/Kirani/src/main/kotlin/com/blueslimee/kirani/listeners/MessageListener. kt:[9,11] Expecting a top level declaration * 50.
And, here is my code: Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
(btw, i already found the Array<String?> error)

Hello. I can’t see any problems with this code, can you please create a YouTrack issue and attach the whole project so I can reproduce the error? Thank you.