encapsulatedShape: '(' innerShape ')' cardinality? annotation* semanticActions

def visitEncapsulatedShape(self, ctx: ShExDocParser.EncapsulatedShapeContext):
        """ encapsulatedShape: '(' innerShape ')' cardinality? annotation* semanticActions """
        enc_shape = ShexOneOfShapeParser(self.context)
        enc_shape.visit(ctx.innerShape())
        self.expression = enc_shape.expression
        self._card_annotations_and_semacts(ctx)