User: rednesto Date: 01 Oct 24 10:45 Revision: 69a1bddc04c0bdf4e357693428d4506be7cc7fc8 Summary: Opt-in internal API for now and hope it goes well for now TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9760&personal=false Index: src/main/kotlin/insight/generation/EventGenHelper.kt =================================================================== --- src/main/kotlin/insight/generation/EventGenHelper.kt (revision acfb0a0d696044daa7db53cb04c372a9aaf2435b) +++ src/main/kotlin/insight/generation/EventGenHelper.kt (revision 69a1bddc04c0bdf4e357693428d4506be7cc7fc8) @@ -33,6 +33,7 @@ import com.intellij.psi.PsiFile import com.intellij.psi.codeStyle.CodeStyleManager import com.intellij.psi.util.parentOfType +import org.jetbrains.kotlin.analysis.api.KaIdeApi import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferences import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferencesInRange import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode @@ -115,7 +116,7 @@ when (KotlinPluginModeProvider.currentPluginMode) { KotlinPluginMode.K1 -> ShortenReferences.DEFAULT.process(insertedEntry) // TODO find a non-internal alternative to this... - KotlinPluginMode.K2 -> shortenReferences(insertedEntry) + KotlinPluginMode.K2 -> @OptIn(KaIdeApi::class) shortenReferences(insertedEntry) } } @@ -127,7 +128,7 @@ when (KotlinPluginModeProvider.currentPluginMode) { KotlinPluginMode.K1 -> ShortenReferences.DEFAULT.process(file, marker.startOffset, marker.endOffset) // TODO find a non-internal alternative to this... - KotlinPluginMode.K2 -> shortenReferencesInRange(file, marker.textRange) + KotlinPluginMode.K2 -> @OptIn(KaIdeApi::class) shortenReferencesInRange(file, marker.textRange) } } }