boolean (Set<PsiType> exceptionsHandled, @NotNull PsiType thrownType) { return exceptionsHandled.contains(thrownType) || exceptionsHandled.stream().anyMatch(exceptionHandled -> exceptionHandled.isAssignableFrom(thrownType)); }