@Override
  public @NotNull Element getState() {
    Element element = new Element("state");
    for (NamedScope myScope : myScopes) {
      element.addContent(writeScope(myScope));
    }
    return element;
  }
@Override
  public @NotNull Element getState()