void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiMethodCallExpression methodCallExpression = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); if (methodCallExpression != null) { ExpressionUtils.bindCallTo(methodCallExpression, myTargetMethodName); if (myClearArguments) { PsiExpressionList argList = methodCallExpression.getArgumentList(); PsiExpression[] args = argList.getExpressions(); if (args.length > 0) { argList.deleteChildRange(args[0], args[args.length - 1]); } } } }