code: public synchronized List<ZipFileIndex> getZipFileIndexes(boolean openedOnly) {
          List<ZipFileIndex> zipFileIndexes = new ArrayList<ZipFileIndex>();
  
          zipFileIndexes.addAll(map.values());
  
          if (openedOnly) {
              for(ZipFileIndex elem : zipFileIndexes) {
                  if (!elem.isOpen()) {
                      zipFileIndexes.remove(elem);
                  }
              }
          }
  
          return zipFileIndexes;
      }
docs: Returns a list of all ZipFileIndex entries
  
  @param openedOnly If true it returns a list of only opened ZipFileIndex entries, otherwise
  all ZipFileEntry(s) are included into the list.
  @return A list of ZipFileIndex entries, or an empty list