KTIJ-33154 [kotlin] Avoid calling checkCancelled on every isAcceptable check

In all relevant places, `cancelableCollectFilterProcessor` should
ensure that `checkCanceled` is called frequently enough
(but not too often)

GitOrigin-RevId: 4bcd4fcb05f6be0f859c23fcf97c9053d3f66477
This commit is contained in:
Roman Golyshev
2025-07-08 21:39:24 +00:00
committed by intellij-monorepo-bot
parent da086aac5b
commit 7f28ff36e9
@@ -43,7 +43,6 @@ class KtSymbolFromIndexProvider(
context(KaSession)
private fun <T : PsiElement> T.isAcceptable(psiFilter: (T) -> Boolean): Boolean {
ProgressManager.checkCanceled()
if (!psiFilter(this)) return false
if (kotlinFqName?.isExcludedFromAutoImport(project, file) == true) return false