do not add opt-in com.intellij.openapi.util.IntellijInternalApi for the whole monorepo (part 2)

GitOrigin-RevId: e4647db9b386df84fe54d8eeeba2f617d18c2e54
This commit is contained in:
Vladimir Krivosheev
2025-03-28 15:37:42 +01:00
committed by intellij-monorepo-bot
parent 92b5532dc1
commit 5d47ba2950
43 changed files with 151 additions and 28 deletions

View File

@@ -1,4 +1,6 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.compiler.backwardRefs
import com.intellij.compiler.impl.CompileDriver
@@ -12,6 +14,7 @@ import com.intellij.openapi.progress.blockingContext
import com.intellij.openapi.progress.coroutineToIndicator
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.ProjectActivity
import com.intellij.openapi.util.IntellijInternalApi
import kotlinx.coroutines.ensureActive
import kotlin.coroutines.coroutineContext

View File

@@ -1,15 +1,17 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceJavaStaticMethodWithKotlinAnalog", "ReplaceGetOrSet")
@file:Internal
@file:OptIn(SettingsInternalApi::class)
@file:OptIn(SettingsInternalApi::class, IntellijInternalApi::class)
package com.intellij.configurationStore
import com.intellij.codeWithMe.ClientId
import com.intellij.openapi.components.*
import com.intellij.openapi.components.RoamingType
import com.intellij.openapi.components.StateStorage
import com.intellij.openapi.components.impl.stores.ComponentStorageUtil
import com.intellij.openapi.diagnostic.debug
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.util.JDOMUtil
import com.intellij.openapi.util.WriteExternalException
import com.intellij.openapi.vfs.LargeFileWriteRequestor

View File

@@ -1,7 +1,9 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.platform.eel.provider.utils
import com.intellij.openapi.progress.runBlockingMaybeCancellable
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.platform.eel.*
import com.intellij.platform.eel.path.EelPath
import com.intellij.platform.eel.provider.ResultErrImpl

View File

@@ -1,9 +1,11 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:JvmName("IjentTunnelsUtil")
@file:OptIn(IntellijInternalApi::class)
package com.intellij.platform.eel.provider.utils
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.platform.eel.*
import com.intellij.platform.eel.channels.EelReceiveChannel
import com.intellij.platform.eel.channels.EelSendChannel

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.execution.processTools
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.util.io.computeDetached
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.async

View File

@@ -1,4 +1,6 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.platform.ijent.spi
import com.intellij.openapi.diagnostic.Attachment
@@ -6,6 +8,7 @@ import com.intellij.openapi.diagnostic.debug
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.progress.Cancellation
import com.intellij.openapi.progress.Cancellation.ensureActive
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.platform.ijent.IjentUnavailableException
import com.intellij.platform.ijent.coroutineNameAppended
import com.intellij.platform.ijent.spi.IjentSessionMediator.ProcessExitPolicy.*

View File

@@ -1,11 +1,13 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:ApiStatus.Internal
@file:Suppress("ReplaceJavaStaticMethodWithKotlinAnalog")
@file:OptIn(IntellijInternalApi::class)
package com.intellij.serialization.xml
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.platform.settings.JsonElementSettingSerializerDescriptor
import com.intellij.platform.settings.SettingDescriptor
import com.intellij.platform.settings.SettingTag

View File

@@ -1,8 +1,11 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.internal.ml.catboost
import com.intellij.internal.ml.InconsistentMetadataException
import com.intellij.internal.ml.ResourcesModelMetadataReader
import com.intellij.openapi.util.IntellijInternalApi
class CatBoostResourcesModelMetadataReader(metadataHolder: Class<*>,
featuresDirectory: String,

View File

@@ -1,10 +1,13 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.openapi.application.impl
import com.intellij.openapi.application.*
import com.intellij.openapi.application.ReadAction.CannotReadException
import com.intellij.openapi.progress.*
import com.intellij.openapi.util.Disposer
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.testFramework.common.timeoutRunBlocking
import com.intellij.util.concurrency.ImplicitBlockingContextTest
import com.intellij.util.concurrency.Semaphore
@@ -19,7 +22,6 @@ import org.junit.jupiter.api.extension.ExtendWith
import java.util.concurrent.atomic.AtomicInteger
import kotlin.coroutines.Continuation
import kotlin.coroutines.resume
import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Duration.Companion.seconds
import kotlinx.coroutines.sync.Semaphore as KSemaphore

View File

@@ -1,7 +1,10 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.openapi.util.io
import com.intellij.openapi.progress.ProcessCanceledException
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.vfs.DiskQueryRelay
import com.intellij.testFramework.junit5.TestApplication
import com.intellij.util.io.blockingDispatcher

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceGetOrSet", "LeakingThis", "ReplaceJavaStaticMethodWithKotlinAnalog")
@file:Internal
@file:OptIn(IntellijInternalApi::class)
package com.intellij.serviceContainer
@@ -36,6 +37,7 @@ import com.intellij.openapi.extensions.impl.createExtensionPoints
import com.intellij.openapi.progress.*
import com.intellij.openapi.util.Condition
import com.intellij.openapi.util.Disposer
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.util.UserDataHolderBase
import com.intellij.platform.instanceContainer.internal.*
import com.intellij.platform.util.coroutines.childScope

View File

@@ -1,5 +1,6 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceJavaStaticMethodWithKotlinAnalog")
@file:OptIn(IntellijInternalApi::class)
package com.intellij.platform.settings
@@ -7,6 +8,7 @@ import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.util.concurrency.annotations.RequiresBackgroundThread
import org.jetbrains.annotations.ApiStatus.Internal
import java.util.List
class SettingDescriptor<T : Any> @IntellijInternalApi @Internal constructor(
/**
@@ -24,7 +26,7 @@ class SettingDescriptor<T : Any> @IntellijInternalApi @Internal constructor(
val serializer: SettingSerializerDescriptor<T>,
) {
class Builder @PublishedApi internal constructor() {
var tags: Collection<SettingTag> = java.util.List.of()
var tags: Collection<SettingTag> = List.of()
@PublishedApi
internal fun <T : Any> build(key: String, pluginId: PluginId, serializer: SettingSerializerDescriptor<T>): SettingDescriptor<T> {
@@ -59,7 +61,7 @@ class SettingDescriptor<T : Any> @IntellijInternalApi @Internal constructor(
return result
}
override fun toString() = "SettingDescriptor(key=$key, pluginId=$pluginId, tags=$tags, serializer=$serializer)"
override fun toString(): String = "SettingDescriptor(key=$key, pluginId=$pluginId, tags=$tags, serializer=$serializer)"
@Internal
// impl note - even for an internal usage, we do not allow providing arbitrary name here; that's why "sub"

View File

@@ -1,5 +1,9 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.webSymbols.utils
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.util.RecursionManager
import com.intellij.psi.PsiElement
import com.intellij.psi.util.CachedValueProvider

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.inspections
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
import junit.framework.TestCase
import org.junit.Before

View File

@@ -1,6 +1,10 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.inspections
import com.intellij.openapi.util.IntellijInternalApi
class UElementAsPsiInspectionTest : PluginModuleTestCase() {
override fun setUp() {

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.kotlin.inspections
import com.intellij.openapi.util.IntellijInternalApi
import org.jetbrains.idea.devkit.inspections.CallingMethodShouldBeRequiresBlockingContextInspection
import org.junit.Before
import org.junit.Test

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.kotlin.inspections
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.testFramework.TestDataPath
import org.jetbrains.idea.devkit.kotlin.DevkitKtTestsUtil

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.kotlin.inspections
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
import org.jetbrains.idea.devkit.inspections.UElementAsPsiInspection

View File

@@ -1,10 +1,13 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.kotlin.inspections.missingApi
import com.intellij.codeInsight.AnnotationUtil
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.ContentEntry
import com.intellij.openapi.roots.ModifiableRootModel
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.vfs.VirtualFileFilter
import com.intellij.pom.java.LanguageLevel
import com.intellij.testFramework.PsiTestUtil

View File

@@ -1,7 +1,10 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.kotlin.util
import com.intellij.openapi.components.Service
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.testFramework.TestDataPath
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
import org.jetbrains.idea.devkit.inspections.LevelType

View File

@@ -1,7 +1,10 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.devkit.workspaceModel.inspections
import com.intellij.devkit.workspaceModel.WorkspaceEntityMutableFieldInspection
import com.intellij.openapi.util.IntellijInternalApi
class WorkspaceEntityMutableFieldInspectionTest: WorkspaceEntityInspectionBase() {
override fun setUp() {

View File

@@ -1,4 +1,6 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package org.jetbrains.idea.devkit.kotlin.k1
import com.intellij.codeInsight.FileModificationService
@@ -7,6 +9,7 @@ import com.intellij.openapi.application.WriteAction
import com.intellij.openapi.command.CommandProcessor
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.EmptyRunnable
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.util.PsiEditorUtil

View File

@@ -1,9 +1,12 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereContributor
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereEssentialContributorMarker
import com.intellij.internal.statistic.eventLog.events.EventPair
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.util.registry.Registry
import com.intellij.searchEverywhereMl.SearchEverywhereMlExperiment
import com.intellij.searchEverywhereMl.SearchEverywhereTabWithMlRanking

View File

@@ -1,4 +1,6 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core
import ai.grazie.emb.FloatTextEmbedding
@@ -10,6 +12,7 @@ import com.intellij.ide.util.scopeChooser.ScopeDescriptor
import com.intellij.internal.statistic.eventLog.events.EventPair
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.SearchEverywhereMlExperiment
import com.intellij.searchEverywhereMl.TextEmbeddingProvider
import com.intellij.searchEverywhereMl.ranking.core.features.FeaturesProviderCacheDataProvider

View File

@@ -1,3 +1,5 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core
import com.intellij.ide.util.gotoByName.GotoActionModel
@@ -6,6 +8,7 @@ import com.intellij.internal.statistic.eventLog.events.ObjectEventData
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.core.id.SearchEverywhereMlItemIdProvider
import kotlin.math.round

View File

@@ -1,8 +1,11 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.features
import com.intellij.internal.statistic.eventLog.validator.ValidationResultType
import com.intellij.internal.statistic.eventLog.validator.rules.EventContext
import com.intellij.internal.statistic.eventLog.validator.rules.impl.CustomValidationRule
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.core.SearchEverywhereMLStatisticsCollector
internal class SearchEverywhereMlElementFeatureValidationRule : CustomValidationRule() {

View File

@@ -1,8 +1,11 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.ide.ui.search.OptionDescription
import com.intellij.ide.util.gotoByName.GotoActionModel
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
private class ActionKeyProvider: SearchEverywhereElementKeyProvider {

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.ide.actions.searcheverywhere.EvaluationResult
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
private class CalculatorKeyProvider: SearchEverywhereElementKeyProvider {

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereCommandInfo
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
internal class CommandInfoKeyProvider : SearchEverywhereElementKeyProvider {

View File

@@ -1,5 +1,8 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.core.SearchEverywhereMLStatisticsCollector.KEY_NOT_COMPUTED_EVENT
import com.intellij.searchEverywhereMl.ranking.core.id.MissingKeyProviderCollector.report

View File

@@ -1,8 +1,11 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.navigation.NavigationItem
import com.intellij.navigation.PsiElementNavigationItem
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
private class NavigationItemKeyProvider : SearchEverywhereElementKeyProvider {

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.ide.actions.searcheverywhere.PSIPresentationBgRendererWrapper
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.psi.PsiElement
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.ide.actions.searcheverywhere.PsiItemWithSimilarity
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
internal class PsiItemWithSimilarityElementKeyProvider : SearchEverywhereElementKeyProvider {

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.execution.actions.ChooseRunConfigurationPopup
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
private class RunConfigurationsKeyProvider: SearchEverywhereElementKeyProvider {

View File

@@ -1,5 +1,6 @@
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
import com.intellij.util.concurrency.annotations.RequiresReadLock
import java.util.concurrent.atomic.AtomicInteger
@@ -14,6 +15,7 @@ internal interface SearchEverywhereMlItemIdProvider {
* If the key cannot be computed (due to unsupported element by any of the [SearchEverywhereElementKeyProvider] the id will be null.
* @param onNullKey function executed when no key was computed for element. The element, for which there is no key, is passed as a parameter.
*/
@OptIn(IntellijInternalApi::class)
internal class SearchEverywhereMlOrderedItemIdProvider(private val onNullKey: (element: Any) -> Unit = {}) : SearchEverywhereMlItemIdProvider {
private var idCounter = AtomicInteger(1)
private val itemToId = hashMapOf<Any, Int>()

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.find.impl.SearchEverywhereItem
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
internal class TextKeyProvider : SearchEverywhereElementKeyProvider {

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.id
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereSpellCheckResult
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
private class TypoKeyProvider : SearchEverywhereElementKeyProvider {

View File

@@ -1,3 +1,5 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core.model
import com.intellij.internal.ml.DecisionFunction
@@ -7,6 +9,7 @@ import com.intellij.internal.ml.catboost.CatBoostModelMetadataReader
import com.intellij.internal.ml.catboost.CatBoostResourcesModelMetadataReader
import com.intellij.internal.ml.catboost.NaiveCatBoostModel
import com.intellij.internal.ml.models.local.LocalCatBoostModelMetadataReader
import com.intellij.openapi.util.IntellijInternalApi
import org.jetbrains.annotations.NonNls
internal abstract class SearchEverywhereMlModel(private val featuresInfo: FeaturesInfo) : DecisionFunction {

View File

@@ -1,8 +1,11 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core
import com.intellij.ide.actions.GotoFileItemProvider
import com.intellij.ide.actions.searcheverywhere.FoundItemDescriptor
import com.intellij.ide.util.gotoByName.GotoFileModel
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiFileSystemItem
import com.intellij.searchEverywhereMl.SearchEverywhereTabWithMlRanking

View File

@@ -1,6 +1,9 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.core
import com.intellij.ide.actions.searcheverywhere.SearchRestartReason
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.core.SearchEverywhereMLStatisticsCollector.REBUILD_REASON_KEY
import com.intellij.searchEverywhereMl.ranking.core.SearchEverywhereMLStatisticsCollector.SEARCH_RESTARTED
import com.intellij.searchEverywhereMl.ranking.core.SearchEverywhereMLStatisticsCollector.SESSION_FINISHED

View File

@@ -1,5 +1,8 @@
@file:OptIn(IntellijInternalApi::class)
package com.intellij.searchEverywhereMl.ranking.vcs
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.searchEverywhereMl.ranking.ext.SearchEverywhereElementKeyProvider
import com.intellij.vcs.log.impl.TimedVcsCommitImpl
import com.intellij.vcs.log.impl.VcsRefImpl

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.jetbrains.python.debugger.pydev
import com.intellij.openapi.util.IntellijInternalApi
import com.intellij.util.asSafely
import com.jetbrains.python.debugger.pydev.tables.PyDevCommandParameters
import com.jetbrains.python.tables.TableCommandParameters

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:OptIn(IntellijInternalApi::class)
package com.jetbrains.python.debugger.pydev.tables
import com.intellij.openapi.util.IntellijInternalApi
import com.jetbrains.python.tables.TableCommandParameters
class PyDevCommandParameters(val start: Int, val end: Int, val format: String?) : TableCommandParameters