public function localIdIn(int $uuid, bool $validate = true): int
    {
        $local_id = ($uuid >> (64 - 2 - 16 - 8 - 38)) & 274877906943;

        if ($validate) {
            $this->validateLocalId($local_id);
        }
        return $local_id;
    }