public static void writeExternal(@NotNull Element element,
                                   @NotNull Map<String, SmartRefElementPointer> persistentEntryPoints,
                                   @NotNull JDOMExternalizableStringList additional_annotations) {
    Collection<SmartRefElementPointer> elementPointers = persistentEntryPoints.values();
    if (!elementPointers.isEmpty()) {
      Element entryPointsElement = new Element("entry_points");
      entryPointsElement.setAttribute(VERSION_ATTR, VERSION);
      for (SmartRefElementPointer entryPoint : elementPointers) {
        assert entryPoint.isPersistent();
        entryPoint.writeExternal(entryPointsElement);
      }
      element.addContent(entryPointsElement);
    }

    if (!additional_annotations.isEmpty()) {
      additional_annotations.writeExternal(element);
    }
  }
public static void writeExternal(@NotNull Element element,
                                   @NotNull Map<String, SmartRefElementPointer> persistentEntryPoints,
                                   @NotNull JDOMExternalizableStringList additional_annotations)