`checkNotNull(sensor, "sensor")`, and same for others?