public void loadState(@NotNull T state) {
    if (state instanceof Element) {
      myOptions = XmlSerializer.deserialize((Element)state, getOptionsClass());
    }
    else {
      myOptions = (RunConfigurationOptions)state;
    }
  }
public void loadState(@NotNull T state)