Use `checkNotNull(location, "location")` to avoid NPEs later (which would be much harder to track down potentially). Same goes for sgDef.