void (ChainContext context, ChainVariable var) { PsiLambdaExpression lambda = LambdaRefactoringUtil.createLambda(myMethodRef, true); if(lambda != null) { PsiExpression body = LambdaUtil.extractSingleExpressionFromBody(lambda.getBody()); if(body != null) { suggestFromExpression(var, context.getProject(), body); } } }