ModCommand (@NotNull ActionContext context, @NotNull PsiJavaToken leaf) { List<PsiParenthesizedExpression> possibleInnerExpressions = getPossibleInnerExpressions(leaf); if (possibleInnerExpressions == null) return ModCommand.nop(); List<ModCommandAction> actions = ContainerUtil.map( possibleInnerExpressions, expr -> ModCommand.psiUpdateStep(expr, PsiExpressionTrimRenderer.render(expr), (e, u) -> replaceExpression(e))); return new ModChooseAction(IntentionPowerPackBundle.message("eliminate.parentheses.intention.title"), actions); }