read action (EA-100181 - assert: PsiFileImpl.getStubTree)

This commit is contained in:
Anna.Kozlova
2017-04-11 16:22:35 +02:00
parent a4a4f57a6f
commit 75c5dfdf03
@@ -462,7 +462,7 @@ public class MarkerType {
return super.process(psiMethod);
}
});
if (myMethod.hasModifierProperty(PsiModifier.ABSTRACT)) {
if (ReadAction.compute(() -> myMethod.hasModifierProperty(PsiModifier.ABSTRACT))) {
PsiClass psiClass = ReadAction.compute(myMethod::getContainingClass);
FunctionalExpressionSearch.search(psiClass).forEach(new CommonProcessors.CollectProcessor<PsiFunctionalExpression>() {
@Override