docs: private void registerOffsetMetrics(
  			MetricGroup consumerMetricGroup,
  			List<KafkaTopicPartitionState<KPH>> partitionOffsetStates) {
  
  		for (KafkaTopicPartitionState<KPH> ktp : partitionOffsetStates) {
  			MetricGroup topicPartitionGroup = consumerMetricGroup
  				.addGroup(OFFSETS_BY_TOPIC_METRICS_GROUP, ktp.getTopic())
  				.addGroup(OFFSETS_BY_PARTITION_METRICS_GROUP, Integer.toString(ktp.getPartition()));
  
  			topicPartitionGroup.gauge(CURRENT_OFFSETS_METRICS_GAUGE, new OffsetGauge(ktp, OffsetGaugeType.CURRENT_OFFSET));
  			topicPartitionGroup.gauge(COMMITTED_OFFSETS_METRICS_GAUGE, new OffsetGauge(ktp, OffsetGaugeType.COMMITTED_OFFSET));
  
  			legacyCurrentOffsetsMetricGroup.gauge(getLegacyOffsetsMetricsGaugeName(ktp), new OffsetGauge(ktp, OffsetGaugeType.CURRENT_OFFSET));
  			legacyCommittedOffsetsMetricGroup.gauge(getLegacyOffsetsMetricsGaugeName(ktp), new OffsetGauge(ktp, OffsetGaugeType.COMMITTED_OFFSET));
  		}
  	}