@Nullable
  public <Ancestor extends PsiElement> Ancestor getParentElement(Class<Ancestor> parentClass) {
    return safeGetPsiElement(getParent(parentClass));
  }
@Nullable
  public <Ancestor extends PsiElement> Ancestor getParentElement(Class<Ancestor> parentClass)