public static boolean hasId(int id) {
        return ID_TO_TYPE.containsKey(id);
    }
indicates whether the API is enabled for forwarding
clients/src/main/java/org/apache/kafka/common/protocol/ApiKeys.java