About importing psd files from the library into layer groups

In CC Library, when you hold down “alt” to import a multi-layer clip into a document, it is imported as a layer group. When “alt” is not pressed, it is imported as a smart object.

How is this logic to be implemented in the PS CEP plugin?