IsModelReferenceToReferable🔗
          Check that the target of the reference matches a AasReferables.
        
      Code
return (
    reference.type == ReferenceTypes.ModelReference
    and len(reference.keys) != 0
    and (reference.keys[-1].type in AasReferables)
)