public final void setComparator(@Nullable Comparator<? super NodeDescriptor<?>> comparator) {
    if (disposed) return;
    if (comparator != null) {
      this.comparator = wrapToNodeComparator(comparator);
      invalidateAsync();
    }
    else if (this.comparator != null) {
      this.comparator = null;
      invalidateAsync();
    }
  }
public final void setComparator(@Nullable Comparator<? super NodeDescriptor<?>> comparator)