boolean (@NotNull PsiTypeElement typeElement) { AtomicBoolean result = new AtomicBoolean(); forEach(typeElement.getProject(), provider -> { boolean canInfer = provider.canInferType(typeElement); if (canInfer) { result.set(true); } return !canInfer; }); return result.get(); }