static StatType forId(int id) {
            for (StatType statType : StatType.values()) {
                if (statType.id == id)
                    return statType;
            }
            return null;
        }
Verifies that concurrent sensor add, remove, updates and read with a metrics reporter
that synchronizes on every reporter method doesn't result in errors or deadlock.
clients/src/test/java/org/apache/kafka/common/metrics/MetricsTest.java