Put it inside of a companion object in your class
class Example {
companion object {
val foo = 1
}
}
Example.foo
If everything inside of your class is going to be static then you can make that class an object in Kotlin
object Example {
val foo = 1
}
Example.foo