void (@NotNull Project project, @NotNull PsiElement methodNameElement, @NotNull ModPsiUpdater updater) { final PsiReferenceExpression methodExpression = (PsiReferenceExpression)methodNameElement.getParent(); if (methodExpression == null) { return; } final PsiMethodCallExpression methodCallExpression = (PsiMethodCallExpression)methodExpression.getParent(); if (methodCallExpression == null) { return; } final PsiExpression qualifier = methodExpression.getQualifierExpression(); if (qualifier == null) { return; } final PsiExpressionList argumentList = methodCallExpression.getArgumentList(); final PsiExpression[] arguments = argumentList.getExpressions(); CommentTracker ct = new CommentTracker(); final PsiExpression argument = ct.markUnchanged(arguments[0]); final PsiExpression appendExpression = ChangeToAppendUtil.buildAppendExpression(qualifier, argument); if (appendExpression == null) { return; } ct.replaceAndRestoreComments(methodCallExpression, appendExpression); }