private void addDirectoryEntry(final ZipOutputStream output, final @NonNls String relativePath, Set<? super String> writtenPaths) throws IOException {
    if (!writtenPaths.add(relativePath)) return;

    ZipEntry e = new ZipEntry(relativePath);
    if (buildDateInMillis != null) {
      e.setTime(buildDateInMillis);
    }
    e.setMethod(ZipEntry.STORED);
    e.setSize(0);
    e.setCrc(0);
    output.putNextEntry(e);
    output.closeEntry();
  }
private void addDirectoryEntry(final ZipOutputStream output, final @NonNls String relativePath, Set<? super String> writtenPaths)