void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiMethodCallExpression methodCallExpr = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); if (methodCallExpr == null) return; PsiExpression newMessageExpr = JavaPsiFacade.getInstance(project).getElementFactory().createExpressionFromText("\"\"", methodCallExpr); PsiExpressionList methodArgs = methodCallExpr.getArgumentList(); PsiElement createdMessageExpr; if (myMessageIsOnFirstPosition) { PsiExpression[] methodArgExprs = methodArgs.getExpressions(); PsiExpression firstMethodArgExpr = methodArgExprs.length > 0 ? methodArgExprs[0] : null; createdMessageExpr = methodArgs.addBefore(newMessageExpr, firstMethodArgExpr); } else { createdMessageExpr = methodArgs.add(newMessageExpr); } updater.moveTo(createdMessageExpr.getTextRange().getStartOffset() + 1); }