void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { final PsiElement element = startElement; final PsiElement parent = element.getParent(); if (!(parent instanceof PsiReferenceExpression referenceExpression)) { return; } final PsiExpression qualifier = referenceExpression.getQualifierExpression(); if (qualifier == null) { return; } final PsiElement grandParent = referenceExpression.getParent(); if (!(grandParent instanceof PsiMethodCallExpression methodCallExpression)) { return; } final PsiExpressionList argumentList = methodCallExpression.getArgumentList(); final PsiExpression[] arguments = argumentList.getExpressions(); if (arguments.length != 1) { return; } final PsiExpression argument = arguments[0]; CommentTracker tracker = new CommentTracker(); @NonNls final String newExpression = tracker.text(qualifier) + '+' + tracker.text(argument); PsiReplacementUtil.replaceExpression(methodCallExpression, newExpression, tracker); }