docs: private long findMaxLen(long pLength) {
          if (hasLength && left < pLength) {
              return Math.max(left, 0);
          }
          else {
              return Math.max(pLength, 0);
          }
      }