[kotlin] missed read action

KTIJ-29889

GitOrigin-RevId: f59ca7dfbd193e0a7727994b3d6def633a99d951
This commit is contained in:
Anna Kozlova
2024-05-23 21:56:23 +02:00
committed by intellij-monorepo-bot
parent 2eaf22b89a
commit c176f726bf

View File

@@ -76,7 +76,7 @@ private fun processInheritorsDelegatingCallToSpecifiedConstructor(
constructorCallComparator: KotlinSearchUsagesSupport.ConstructorCallHandle,
process: (KtCallElement) -> Boolean
): Boolean {
return KotlinFindUsagesSupport.searchInheritors(klass, scope.restrictByFileType(KotlinFileType.INSTANCE), false).all {
return runReadAction { KotlinFindUsagesSupport.searchInheritors(klass, scope.restrictByFileType(KotlinFileType.INSTANCE), false) }.all {
runReadAction {
val unwrapped = it.takeIf { it.isValid }?.unwrapped
if (unwrapped is KtClass)