public static function getListByPackage($pkg)
    {
        $result = [];
        $pkgID = (int) (is_object($pkg) ? $pkg->getPackageID() : $pkg);
        if ($pkgID !== 0) {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $rs = $db->executeQuery('select btsID from BlockTypeSets where pkgID = ? order by btsID asc', [$pkgID]);
            while (($btsID = $rs->fetchColumn()) !== false) {
                $result[] = static::getByID($btsID);
            }
        }

        return $result;
    }