@electrum : do you mean I should use checkArgument not Objects.requireNonNull() ?