`KtReference` might be resolved from anywhere, even from the write action - the call site might not know anything about Kotlin, and might not be able to somehow prevent the `inaccessible analysis session` exception from being thrown. That's why we have to be permissive here. ^KTIJ-26867 Fixed