From 728cdfee494d1a8704a9f52524efebb00f0683e2 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Thu, 27 Sep 2018 17:11:59 +0300 Subject: [PATCH] wrap with read action --- .../codeInspection/ex/GlobalJavaInspectionContextImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/ex/GlobalJavaInspectionContextImpl.java b/java/java-impl/src/com/intellij/codeInspection/ex/GlobalJavaInspectionContextImpl.java index 12c9a2c292b9..4242cefcab45 100644 --- a/java/java-impl/src/com/intellij/codeInspection/ex/GlobalJavaInspectionContextImpl.java +++ b/java/java-impl/src/com/intellij/codeInspection/ex/GlobalJavaInspectionContextImpl.java @@ -302,7 +302,7 @@ public class GlobalJavaInspectionContextImpl extends GlobalJavaInspectionContext List sortedIDs = getSortedIDs(myQNameUsagesRequests); for (SmartPsiElementPointer id : sortedIDs) { final UClass uClass = ReadAction.compute(() -> UastContextKt.toUElement(dereferenceInReadAction(id), UClass.class)); - String qualifiedName = uClass != null ? uClass.getQualifiedName() : null; + String qualifiedName = uClass != null ? ReadAction.compute(() -> uClass.getQualifiedName()) : null; if (qualifiedName != null) { List callbacks = myQNameUsagesRequests.get(id); final GlobalSearchScope projectScope = GlobalSearchScope.projectScope(context.getProject());