private InstanceofLink(PsiChildLink<Parent, Child> delegate, Class<CastTo> castTo) { myDelegate = delegate; myCastTo = castTo; }
public static <Parent extends PsiElement, Child extends PsiElement, CastTo extends Child> InstanceofLink<Parent, Child, CastTo> create( PsiChildLink<Parent, Child> delegate, Class<CastTo> castTo) { return new InstanceofLink<Parent, Child, CastTo>(delegate, castTo); }