class KQueueTransportFactory implements TransportFactory<KQueueSocketChannel, KQueueEventLoopGroup> {

    static boolean isAvailable() {<FILL_FUNCTION_BODY>}

    @Override
    public KQueueSocketChannel newChannel() {
        return new KQueueSocketChannel();
    }

    @Override
    public KQueueEventLoopGroup newEventLoopGroup(int ioThreadsCount, ThreadFactory threadFactory) {
        return new KQueueEventLoopGroup(ioThreadsCount, threadFactory);
    }
}

        try {
            Class.forName("io.netty.channel.kqueue.KQueue");
        } catch (ClassNotFoundException e) {
            return false;
        }
        return KQueue.isAvailable();
    
<no_super_class>