boolean (@NotNull JsonSchemaService service, @NotNull JsonSchemaObject rootSchema) { if (service.isSchemaFile(rootSchema)) { JsonProperty property = ObjectUtils.tryCast(getElement().getParent(), JsonProperty.class); if (property != null) { if (JsonSchemaObject.X_INTELLIJ_LANGUAGE_INJECTION.equals(property.getName())) { return true; } if ("language".equals(property.getName())) { PsiElement parent = property.getParent(); if (parent instanceof JsonObject) { PsiElement grandParent = parent.getParent(); if (grandParent instanceof JsonProperty && JsonSchemaObject.X_INTELLIJ_LANGUAGE_INJECTION.equals(((JsonProperty)grandParent).getName())) { return true; } } } } } return false; }