@@ -33,6 +33,7 @@ import com.intellij.psi.PsiElement
33
33
import com.intellij.psi.PsiFile
34
34
import com.intellij.psi.codeStyle.CodeStyleManager
35
35
import com.intellij.psi.util.parentOfType
36
+ import org.jetbrains.kotlin.analysis.api.KaIdeApi
36
37
import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferences
37
38
import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferencesInRange
38
39
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode
@@ -115,7 +116,7 @@ class KotlinEventGenHelper : EventGenHelper {
115
116
when (KotlinPluginModeProvider .currentPluginMode) {
116
117
KotlinPluginMode .K1 -> ShortenReferences .DEFAULT .process(insertedEntry)
117
118
// TODO find a non-internal alternative to this...
118
- KotlinPluginMode .K2 -> shortenReferences(insertedEntry)
119
+ KotlinPluginMode .K2 -> @OptIn( KaIdeApi :: class ) shortenReferences(insertedEntry)
119
120
}
120
121
}
121
122
@@ -127,7 +128,7 @@ class KotlinEventGenHelper : EventGenHelper {
127
128
when (KotlinPluginModeProvider .currentPluginMode) {
128
129
KotlinPluginMode .K1 -> ShortenReferences .DEFAULT .process(file, marker.startOffset, marker.endOffset)
129
130
// TODO find a non-internal alternative to this...
130
- KotlinPluginMode .K2 -> shortenReferencesInRange(file, marker.textRange)
131
+ KotlinPluginMode .K2 -> @OptIn( KaIdeApi :: class ) shortenReferencesInRange(file, marker.textRange)
131
132
}
132
133
}
133
134
}
0 commit comments