boolean (@NotNull PsiElement literal) { if (literal instanceof JsonLiteral) { String textWithoutHostEscaping = JsonPsiUtil.getElementTextWithoutHostEscaping(literal); return textWithoutHostEscaping.startsWith("\"") || textWithoutHostEscaping.startsWith("'"); } if (literal instanceof JsonReferenceExpression) { return StringUtil.isJavaIdentifier(literal.getText()); } return false; }