public static Parameter<Boolean> norms(boolean defaultValue, Function<FieldMapper, Boolean> initializer) {
return Parameter.boolParam("norms", true, initializer, defaultValue)
.setMergeValidator((o, n, c) -> o == n || (o && n == false)); // norms can be updated from 'true' to 'false' but not vv
}
n == false didn't trigger warnings no matter the type of n is boolean or Boolean by spotBugs IDEA plugin with maximal effort and low minimal confidence.
link