void (@NotNull Element element, @NotNull LiveTemplateContextService ltContextService) { Map<String, String> internMap = ltContextService.getInternalIds(); for (Element option : element.getChildren("option")) { String name = option.getAttributeValue("name"); String value = option.getAttributeValue("value"); if (name != null && value != null) { myContextStates.put(internMap.getOrDefault(name, name), Boolean.parseBoolean(value)); } } myContextStates.putAll(makeInheritanceExplicit(this, ltContextService.getSnapshot())); }