private static boolean isInScope(@NotNull SearchScope scope, @NotNull PsiClass subClass) {
    return ReadAction.compute(() -> PsiSearchScopeUtil.isInScope(scope, subClass));
  }
private static boolean isInScope(@NotNull SearchScope scope, @NotNull PsiClass subClass)