private boolean sameRequest(final Set<TopicPartition> currentRequest, final Generation currentGeneration) {
            return Objects.equals(requestedGeneration, currentGeneration) && requestedPartitions.equals(currentRequest);
        }
This class manages the coordination process with the consumer coordinator.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java