boolean (@NotNull PsiModifierListOwner psiModifierListOwner, PsiClassType exceptionClassType) { final PsiAnnotation psiAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiModifierListOwner, LombokClassNames.SNEAKY_THROWS); if (psiAnnotation == null) { return false; } final Collection<PsiType> sneakedExceptionTypes = PsiAnnotationUtil.getAnnotationValues(psiAnnotation, PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME, PsiType.class); //Default SneakyThrows handles all exceptions return sneakedExceptionTypes.isEmpty() || sneakedExceptionTypes.iterator().next().equalsToText(JAVA_LANG_THROWABLE) || isExceptionHandled(exceptionClassType, sneakedExceptionTypes); }