@Nullable
    private static PsiExpression getThrownException(@Nullable PsiLambdaExpression lambda) {
      if (lambda == null || !lambda.getParameterList().isEmpty()) return null;
      final PsiCodeBlock body = tryCast(lambda.getBody(), PsiCodeBlock.class);
      if (body == null) return null;
      final PsiStatement[] statements = body.getStatements();
      if (statements.length != 1) return null;
      final PsiThrowStatement throwStatement = tryCast(statements[0], PsiThrowStatement.class);
      if (throwStatement == null) return null;
      return throwStatement.getException();
    }
@Nullable
    private static PsiExpression getThrownException(@Nullable PsiLambdaExpression lambda)