void (@NotNull PsiElement element) { if (!(element instanceof PsiMethodCallExpression methodCallExpression)) { return; } final PsiExpressionList argumentList = methodCallExpression.getArgumentList(); final PsiExpression[] arguments = argumentList.getExpressions(); CommentTracker commentTracker = new CommentTracker(); final String replacementExpression = ExpressionUtils.hasStringType(arguments[0]) ? buildReplacementExpression(arguments, 0, commentTracker) : buildReplacementExpression(arguments, 1, commentTracker); PsiReplacementUtil.replaceExpression(methodCallExpression, replacementExpression, commentTracker); }