private static int getNodeInsertionIndex(@NotNull Node node, @NotNull List<? extends Node> children) {
    int i = getNodeIndex(node, children);
    return i >= 0 ? i : -i - 1;
  }
private static int getNodeInsertionIndex(@NotNull Node node, @NotNull List<? extends Node> children)