EA-389337 T: SharedImplUtil.findFileElement

GitOrigin-RevId: 313fa6aab59c6c8529d0add9ac53e14e62f77670
This commit is contained in:
Anna Kozlova
2022-03-14 10:04:38 +01:00
committed by intellij-monorepo-bot
parent 689dac3bda
commit 5d5412de4f

View File

@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
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(ReadAction.compute(() -> parameter.getDeclarationScope())),
ReadAction.compute(() -> new LocalSearchScope(parameter.getDeclarationScope())),
true,
parameter);
}