Could overload `LookupContextImpl` constructor to have a version that takes `Iterable<? extends Entity>` etc. That would probably simplify test code; whether it's worth having more non-test code for that is debatable.