void (JsonValueAdapter element, JsonSchemaObject object) { if (element.isStringLiteral()) { object.setLanguageInjection(getString(element)); } else if (element instanceof JsonObjectValueAdapter) { for (JsonPropertyAdapter adapter : ((JsonObjectValueAdapter)element).getPropertyList()) { String lang = readSingleProp(adapter, "language", JsonSchemaReader::getString); if (lang != null) object.setLanguageInjection(lang); String prefix = readSingleProp(adapter, "prefix", JsonSchemaReader::getString); if (prefix != null) object.setLanguageInjectionPrefix(prefix); String postfix = readSingleProp(adapter, "suffix", JsonSchemaReader::getString); if (postfix != null) object.setLanguageInjectionPostfix(postfix); } } }