@Override
    public boolean isCompatibleWith(final StoreFactory storeFactory) {
        return (storeFactory instanceof MaterializedStoreFactory)
                && ((MaterializedStoreFactory<?, ?, ?>) storeFactory).materialized.equals(materialized);
    }
{@code MaterializedStoreFactory} is the base class for any {@link StoreFactory} that
wraps a {@link MaterializedInternal} instance.
streams/src/main/java/org/apache/kafka/streams/kstream/internals/MaterializedStoreFactory.java