void (@NotNull @NonNls String key, @NotNull MasterDetailsState state) { final Element element = XmlSerializer.serialize(state); final ComponentState componentState = new ComponentState(); componentState.myKey = key; componentState.mySettings = element; myStates.put(key, componentState); }