void (@NotNull Element element) { myMap.clear(); for (Element keyElement : element.getChildren(KEY_ELEMENT_NAME)) { LinkedList<String> recents = new LinkedList<>(); for (Element aChildren : keyElement.getChildren(RECENT_ELEMENT_NAME)) { recents.addLast(aChildren.getAttributeValue(NAME_ATTR)); } myMap.put(keyElement.getAttributeValue(NAME_ATTR), recents); } }