EA-389337 (plugin) - T: SharedImplUtil.findFileElement

GitOrigin-RevId: 366560ce9a30c3bb52defe2ab32980f31fd57c52
This commit is contained in:
Anna Kozlova
2021-11-15 10:32:53 +01:00
committed by intellij-monorepo-bot
parent 2b71f53f95
commit 2e4ea1b5d4

View File

@@ -1,4 +1,4 @@
// 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-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.
package com.intellij.psi.impl.search;
import com.intellij.openapi.application.QueryExecutorBase;
@@ -37,7 +37,7 @@ public class JavaRecordComponentSearcher extends QueryExecutorBase<PsiReference,
PsiParameter parameter = info.myLightCompactConstructorParameter;
if (parameter != null) {
optimizer.searchWord(info.myName,
new LocalSearchScope(parameter.getDeclarationScope()),
new LocalSearchScope(ReadAction.compute(() -> parameter.getDeclarationScope())),
true,
parameter);
}