docs: protected Integer getCorrectIndex(Integer index) {
      Integer size = jsonNode.size();
      Integer newIndex = index;
  
      // reverse walking through the array
      if(index < 0) {
        newIndex = size + index;
      }
  
      // the negative index would be greater than the size a second time!
      if(newIndex < 0) {
        throw LOG.indexOutOfBounds(index, size);
      }
  
      // the index is greater as the actual size
      if(index > size) {
       throw LOG.indexOutOfBounds(index, size);
      }
  
      return newIndex;
    }