void (@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(); } }