public int partitionsWithoutPreferredLeaderChange() {
        return partitionsWithoutPreferredLeaderChange;
    }
Calculates the change between two boolean values, expressed as an integer.
metadata/src/main/java/org/apache/kafka/controller/metrics/ControllerMetricsChanges.java