KAFKA-20032: KIP-1265 Automatic detection of internal API usage (#21337)