public void setComparator(@NotNull Comparator<Node> comparator) {
    if (!comparator.equals(this.comparator.getAndSet(comparator))) structureChanged(null);
  }
public void setComparator(@NotNull Comparator<Node> comparator)