Is there any way to annotate variable in Kotlin which is null
on application start and after it is created it cannot be assigned to null
again?
I can't set field as e.g. var someField: Boolean?
because it can be nulled at some point or lateinit var someField: Boolean
because it is expected that field is initialized before it will be used (or maybe this is proper way to resolve my situation?).