docs: public static StatDescriptor[] listStatMembers(StatDescriptor sd, boolean recursive) {
          if (disabled)
              return null;
  
          ModuleItem module = null;
          if (sd == null)
              module = moduleRoot; // root
          else
              module = findModuleItem(sd.getPath());
          if (module == null)
              return null;
          else {
              ArrayList list = module.listChildStatDescriptors(recursive);
              int n = list.size();
              StatDescriptor[] ret = new StatDescriptor[n];
              for (int k = 0; k < n; k++)
                  ret[k] = (StatDescriptor) list.get(k);
  
              return ret;
          }
      }