CallHandler<CallChainSimplification> () { return CallHandler.of(OPTIONAL_OR_ELSE_GET, call -> { final PsiLambdaExpression lambda = tryCast(skipParenthesizedExprDown(call.getArgumentList().getExpressions()[0]), PsiLambdaExpression.class); final PsiExpression thrownException = getThrownException(lambda); if (thrownException == null) return null; return new ReplaceWithOrElseThrowFix(); }); }