private Element writeConvention(String shortName, NamingConvention<T> convention) {
    boolean disabled = myDisabledShortNames.contains(shortName);
    Element element = new Element("extension")
      .setAttribute("name", shortName)
      .setAttribute("enabled", disabled ? "false" : "true");
    NamingConventionBean conventionBean = myNamingConventionBeans.get(shortName);
    if (!convention.createDefaultBean().equals(conventionBean)) {
      XmlSerializer.serializeInto(conventionBean, element);
    }
    else {
      if (disabled != convention.isEnabledByDefault()) return null;
    }
    return element;
  }
private Element writeConvention(String shortName, NamingConvention<T> convention)