void (@NotNull Element state) { myRecentExpressions.clear(); for (Element expression : state.getChildren(EXPRESSIONS_TAG)) { String id = expression.getAttributeValue(ID_ATTRIBUTE); LinkedList<XExpression> expressions = new LinkedList<>(); for (Element expressionElement : expression.getChildren(EXPRESSION_TAG)) { expressions.add(XmlSerializer.deserialize(expressionElement, ExpressionState.class).toXExpression()); } myRecentExpressions.put(id, expressions); } }