public Sensor getSensor(String name) {
        return this.sensors.get(Objects.requireNonNull(name));
    }
Get the sensor with the given name if it exists
@param name The name of the sensor
@return Return the sensor or null if no such sensor exists
clients/src/main/java/org/apache/kafka/common/metrics/Metrics.java