void setComparator(@NotNull Comparator<? super NodeDescriptor<?>> comparator) {
    model.onValidThread(() -> {
      if (this.comparator == comparator) {
        return;
      }
      this.comparator = comparator;
      treeStructureChanged(null, null, null);
    });
  }
void setComparator(@NotNull Comparator<? super NodeDescriptor<?>> comparator)