@Override
  public PsiElement getParent() {
    CompositeElement treeParent = getTreeParent();
    if (treeParent == null) return null;
    if (treeParent instanceof PsiElement) return (PsiElement)treeParent;
    return treeParent.getPsi();
  }
@Override
  public PsiElement getParent()