String (@NotNull PsiExpression expression) { if (myDefaultLambdaParameters.length == 0) { return "()->" + expression.getText(); } JavaCodeStyleManager manager = JavaCodeStyleManager.getInstance(expression.getProject()); String params = StreamEx.of(myDefaultLambdaParameters) .map(param -> manager.suggestUniqueVariableName(param, expression, true)) .joining(","); if (myDefaultLambdaParameters.length != 1) { params = "(" + params + ")"; } return params + "->" + expression.getText(); }