void (@NotNull PsiElement element, @NotNull ActionContext context, @NotNull ModPsiUpdater updater) { final GrMethodCallExpression expression = (GrMethodCallExpression)element; final GrExpression invokedExpression = expression.getInvokedExpression(); final GrArgumentList argList = expression.getArgumentList(); final GrClosableBlock[] closureArgs = expression.getClosureArguments(); final StringBuilder newExpression = new StringBuilder(); newExpression.append(invokedExpression.getText()); newExpression.append(".call"); newExpression.append(argList.getText()); for (GrClosableBlock closureArg : closureArgs) { newExpression.append(closureArg.getText()); } PsiImplUtil.replaceExpression(newExpression.toString(), expression); }