void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiNewExpression newExpression = (PsiNewExpression)element.getParent(); if (!isStillValid(newExpression)) { return; } final PsiExpressionList argumentList = newExpression.getArgumentList(); if (argumentList == null) { return; } final PsiExpression[] arguments = argumentList.getExpressions(); final PsiExpression firstArgument = PsiUtil.skipParenthesizedExprDown(arguments[0]); if (firstArgument instanceof PsiLiteralExpression) { PsiReplacementUtil.replaceExpression(firstArgument, '"' + getLiteralText((PsiLiteralExpression)firstArgument) + '"'); } else if (arguments.length == 1 && firstArgument != null) { PsiReplacementUtil.replaceExpression(newExpression, "java.math.BigDecimal.valueOf(" + firstArgument.getText() + ')'); } }