void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); final String rawText = element.getText(); if (element instanceof JsonLiteral || element instanceof JsonReferenceExpression) { String content = JsonPsiUtil.stripQuotes(rawText); if (element instanceof JsonStringLiteral && rawText.startsWith("'")) { content = escapeSingleQuotedStringContent(content); } final PsiElement replacement = new JsonElementGenerator(project).createValue("\"" + content + "\""); CodeStyleManager.getInstance(project).performActionWithFormatterDisabled((Runnable)() -> element.replace(replacement)); } else { Logger.getInstance(JsonStandardComplianceInspection.class) .error("Quick fix was applied to unexpected element", rawText, element.getParent().getText()); } }