code: protected CharSequence doFormatSegment(VersionIdentifier value, int index) {
  
      int segment = value.getVersionSegment(index);
      return AbstractVersionIdentifierFormatterNumber.padNumber(segment, this.segmentPadding, 10);
    }
docs: This method formats the {@link VersionIdentifier#getVersionSegment(int) segment} at the given
  {@code index}.
  
  @param value is the {@link VersionIdentifier}.
  @param index is the index of the {@link VersionIdentifier#getVersionSegment(int) segment} to format.
  @return the formatted segment.