public static function findMainCode($codes)
    {
        foreach (static::mainCodes() as $code) {
            if (in_array($code, $codes)) {
                return $code;
            }
        }

        return null;
    }