@@ -37,9 +37,9 @@ import org.jetbrains.kotlin.K1Deprecation
3737import org.jetbrains.kotlin.analysis.api.KaIdeApi
3838import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferences
3939import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferencesInRange
40+ import org.jetbrains.kotlin.idea.base.codeInsight.ShortenReferencesFacility
4041import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode
4142import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginModeProvider
42- import org.jetbrains.kotlin.idea.core.ShortenReferences
4343import org.jetbrains.kotlin.psi.KtClassOrObject
4444import org.jetbrains.kotlin.psi.KtFile
4545import org.jetbrains.kotlin.psi.KtPsiFactory
@@ -115,7 +115,7 @@ class KotlinEventGenHelper : EventGenHelper {
115115 val entry = factory.createSuperTypeEntry(fqn)
116116 val insertedEntry = ktClass.addSuperTypeListEntry(entry)
117117 when (KotlinPluginModeProvider .currentPluginMode) {
118- KotlinPluginMode .K1 -> @OptIn(K1Deprecation ::class ) ShortenReferences . DEFAULT .process (insertedEntry)
118+ KotlinPluginMode .K1 -> @OptIn(K1Deprecation ::class ) ShortenReferencesFacility .getInstance().shorten (insertedEntry)
119119 // TODO find a non-internal alternative to this...
120120 KotlinPluginMode .K2 -> @OptIn(KaIdeApi ::class ) shortenReferences(insertedEntry)
121121 }
@@ -129,7 +129,7 @@ class KotlinEventGenHelper : EventGenHelper {
129129
130130 val marker = JvmEventGenHelper .doReformat(project, file, startOffset, endOffset) ? : return
131131 when (KotlinPluginModeProvider .currentPluginMode) {
132- KotlinPluginMode .K1 -> @OptIn(K1Deprecation ::class ) ShortenReferences . DEFAULT .process (file, marker.startOffset, marker.endOffset )
132+ KotlinPluginMode .K1 -> @OptIn(K1Deprecation ::class ) ShortenReferencesFacility .getInstance().shorten (file, marker.textRange )
133133 // TODO find a non-internal alternative to this...
134134 KotlinPluginMode .K2 -> @OptIn(KaIdeApi ::class ) shortenReferencesInRange(file, marker.textRange)
135135 }
0 commit comments