Couple<String> (Project project, PsiElement psiElement, I18nizeQuickFixModel model) { final Couple<String> result = super.doAction(project, psiElement, model); if (result != null && psiElement instanceof PsiLiteralExpression) { final String key = result.first; final StringBuilder buffer = new StringBuilder(); buffer.append('"'); StringUtil.escapeStringCharacters(key.length(), key, buffer); buffer.append('"'); try { WriteAction.run(() -> { final PsiExpression newKeyLiteral = JavaPsiFacade.getElementFactory(project).createExpressionFromText(buffer.toString(), null); psiElement.replace(newKeyLiteral); }); } catch (IncorrectOperationException e) { LOG.error(e); } } return result; }