docs: public List<InternalDocumentRevision> leafRevisions(boolean excludeDeleted) {
          List<InternalDocumentRevision> res = new ArrayList<InternalDocumentRevision>();
          for(DocumentRevisionNode obj : leafs()) {
              InternalDocumentRevision revision = obj.getData();
              if (!excludeDeleted || !revision.isDeleted()){
                  res.add(revision);
              }
          }
          return res;
      }