private static int getNodeIndex(@NotNull Node newNode, @NotNull List<? extends Node> children) {
    return Collections.binarySearch(children, newNode, COMPARATOR);
  }
private static int getNodeIndex(@NotNull Node newNode, @NotNull List<? extends Node> children)