@@ -33,6 +33,7 @@ import com.intellij.psi.PsiElement
3333import com.intellij.psi.PsiFile
3434import com.intellij.psi.codeStyle.CodeStyleManager
3535import com.intellij.psi.util.parentOfType
36+ import org.jetbrains.kotlin.analysis.api.KaIdeApi
3637import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferences
3738import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferencesInRange
3839import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode
@@ -115,7 +116,7 @@ class KotlinEventGenHelper : EventGenHelper {
115116 when (KotlinPluginModeProvider .currentPluginMode) {
116117 KotlinPluginMode .K1 -> ShortenReferences .DEFAULT .process(insertedEntry)
117118 // TODO find a non-internal alternative to this...
118- KotlinPluginMode .K2 -> shortenReferences(insertedEntry)
119+ KotlinPluginMode .K2 -> @OptIn( KaIdeApi :: class ) shortenReferences(insertedEntry)
119120 }
120121 }
121122
@@ -127,7 +128,7 @@ class KotlinEventGenHelper : EventGenHelper {
127128 when (KotlinPluginModeProvider .currentPluginMode) {
128129 KotlinPluginMode .K1 -> ShortenReferences .DEFAULT .process(file, marker.startOffset, marker.endOffset)
129130 // 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)
131132 }
132133 }
133134}
0 commit comments