boolean (@NotNull Editor editor, @NotNull PsiElement element) { if (((LeafPsiElement)element).getElementType() == TokenType.WHITE_SPACE) { PsiElement prevSibling = element.getPrevSibling(); if (prevSibling instanceof JsonProperty) { JsonValue nameElement = ((JsonProperty)prevSibling).getNameElement(); if (!nameElement.getText().endsWith("\"")) { editor.getCaretModel().moveToOffset(nameElement.getTextRange().getEndOffset()); EditorModificationUtil.insertStringAtCaret(editor, "\"", false, true, 1); return true; } } } return false; }