Invoking LeafNodeContextBuilder#atIndex() with null seems not useful, so we could change the parameter type to a primitive int.