Okay, so in the end it was almost it.
selfRef.Parent is not a HybridShape but a SketchBasedShape (a Pad to be exact). To get the real type of the object I used IDisplatch.GetTypeInfo, then ITypeInfo.GetDocumentation, which gives the name of the real type.
Now I completely overlooked the fact...