public static int bound(int value, int lowerBound, int upperBound) {
    assert lowerBound <= upperBound : String.format("%s - [%s, %s]", value, lowerBound, upperBound);
    return MathUtil.clamp(value, lowerBound, upperBound);
  }
public static int bound(int value, int lowerBound, int upperBound)