private static boolean shouldRebalance(@NotNull CharSequence shorter, @NotNull CharSequence longer) {
    return (shorter.length() << 1) < longer.length() && longer instanceof CompositeNode;
  }
private static boolean shouldRebalance(@NotNull CharSequence shorter, @NotNull CharSequence longer)