WPBakery Page Builder elements for special Post Types

Once, when developing custom elements for WPBakery Page Builder. I was faced with the need to add these elements only to pages of a certain Post Types. A similar task is solved quite simply using the following code fragment:

<?php
/**
 * Set VC for post types.
 */
function vc_post_types() {
	if ( function_exists( 'vc_set_default_editor_post_types' ) && apply_filters( 'plush_vc_posts_editor', true ) ) {
		vc_set_default_editor_post_types(
			array(
				'page',
				'post',
				'product'
			)
		);
	}
}