/guava/guava/src/com/google/common/collect/TreeMultiset.java
if ( result[0] != 0) {
if ( result[0] == expectedCount ) {
if (expectedCount == 0 && newCount > 0) { return addRightChild(e, newCount); } return this; } right = initRight.setCount(comparator, e, expectedCount, newCount, result); <extra_id_0> if (newCount == 0 && result[0] != 0) { this.distinctElements--; } else if (newCount > 0 && result[0] == 0) { this.distinctElements++; } this.totalCount += newCount - result[0];