private static @NotNull List<PsiThrowStatement> getThrowStatements(@Nullable PsiLambdaExpression psiLambdaExpression) {
    if (psiLambdaExpression == null) {
      return List.of();
    }
    PsiElement lambdaSupplierBody = psiLambdaExpression.getBody();
    if (lambdaSupplierBody == null) {
      return List.of();
    }

    Collection<PsiThrowStatement> statements =
      ContainerUtil.filter(PsiTreeUtil.collectElementsOfType(lambdaSupplierBody, PsiThrowStatement.class),
                           e -> e.getException() != null &&
                                e.getException().getType() instanceof PsiClassType exceptionType &&
                                ExceptionUtil.getHandlePlace(e, exceptionType, lambdaSupplierBody) == UNHANDLED);

    return ContainerUtil.findAll(statements, statement ->
      PsiTreeUtil.skipParentsOfType(statement, PsiCodeBlock.class, PsiStatement.class) == psiLambdaExpression);
  }
private static @NotNull List<PsiThrowStatement> getThrowStatements(@Nullable PsiLambdaExpression psiLambdaExpression)