void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiLiteralExpression literalExpression)) { return; } final Object literal = literalExpression.getValue(); if (!(literal instanceof Character)) { return; } final String escaped = StringUtil.escapeStringCharacters(literal.toString()); PsiReplacementUtil.replaceExpression(literalExpression, '\"' + escaped + '"'); }