public void readExternal(@NotNull Element element, @Nullable String defaultName) {
    myName = null;
    myClassName = null;
    for (Element option : element.getChildren("option")) {
      final String optionName = option.getAttributeValue("name");
      switch (optionName) {
        case NAME_OPTION -> myName = option.getAttributeValue("value");
        case ENABLED_OPTION -> {
          // default is false
          String value = option.getAttributeValue("value");
          if (value != null) {
            myEnabled = Boolean.parseBoolean(value);
          }
        }
        case CLASSNAME_OPTION -> myClassName = option.getAttributeValue("value");
        case SHOW_TYPE_OPTION ->
          // default is true
          myShowType = !"false".equalsIgnoreCase(option.getAttributeValue("value"));
      }
    }

    if (myName == null) {
      myName = defaultName;
    }
  }
public void readExternal(@NotNull Element element, @Nullable String defaultName)