docs: private static void validateStartEnd(int start, int end) {
          if (start < 0) {
              throw new IllegalArgumentException("Parameter start must not be negative.");
          }
          if (end < 0) {
              throw new IllegalArgumentException("Parameter end must not be negative.");
          }
          if (start > end) {
              throw new IllegalArgumentException("Parameter start must not be greater than end.");
          }
      }