docs: public static int getMaxSizePerNode(MaxSizeConfig maxSizeConfig) {
          // max size or -1 if policy is different or not set
          double maxSizePerNode = maxSizeConfig.getMaxSizePolicy() == PER_NODE ? maxSizeConfig.getSize() : -1D;
  
          if (maxSizePerNode == MaxSizeConfig.DEFAULT_MAX_SIZE) {
              // unlimited
              return -1;
          }
  
          return (int) maxSizePerNode;
      }