private static void writeJarDirs(@NotNull List<? extends VirtualFilePointer> myJarDirectories,
                                   @NotNull Element element,
                                   boolean recursive) {
    List<VirtualFilePointer> jarDirectories = new ArrayList<>(myJarDirectories);
    jarDirectories.sort(Comparator.comparing(VirtualFilePointer::getUrl, String.CASE_INSENSITIVE_ORDER));
    for (VirtualFilePointer pointer : jarDirectories) {
      String url = pointer.getUrl();
      final Element jarDirElement = new Element(JAR_DIRECTORY_ELEMENT);
      jarDirElement.setAttribute(URL_ATTR, url);
      jarDirElement.setAttribute(RECURSIVE_ATTR, Boolean.toString(recursive));
      element.addContent(jarDirElement);
    }
  }
private static void writeJarDirs(@NotNull List<? extends VirtualFilePointer> myJarDirectories,
                                   @NotNull Element element,
                                   boolean recursive)