private static Condition<PsiElement> wrap(Condition<PsiElement> cond) {
    return e -> DumbService.getInstance(e.getProject()).computeWithAlternativeResolveEnabled(() -> cond.value(e));
  }
private static Condition<PsiElement> wrap(Condition<PsiElement> cond)