void (@NotNull ActionContext context, @NotNull PsiLiteralExpression literal, @NotNull ModPsiUpdater updater) { final Object value = literal.getValue(); if (value != null && value.toString().length() == 1) { final PsiElementFactory factory = JavaPsiFacade.getElementFactory(context.project()); final PsiExpression newExpression = factory.createExpressionFromText(quote(convertedValue(literal), ! isString(literal.getType())), literal.getParent()); literal.replace(newExpression); } }