public static <K, V> StateSerdes<K, V> withBuiltinTypes(
        final String topic,
        final Class<K> keyClass,
        final Class<V> valueClass) {
        return new StateSerdes<>(topic, Serdes.serdeFrom(keyClass), Serdes.serdeFrom(valueClass));
    }
Create a new instance of {@link StateSerdes} for the given state name and key-/value-type classes.

@param topic      the topic name
@param keyClass   the class of the key type
@param valueClass the class of the value type
@param <K>        the key type
@param <V>        the value type
@return a new instance of {@link StateSerdes}
streams/src/main/java/org/apache/kafka/streams/state/StateSerdes.java