I'd also include `int retriesRemaining = checkArgument(numAttempts > 0, "numAttempts %s must be greater than zero", numAttempts)`.
But it's a private method so probably not worth it here.