protected final PsiElement getParentByStub() {
    final StubElement<?> stub = getStub();
    if (stub != null) {
      return stub.getParentStub().getPsi();
    }

    return SharedImplUtil.getParent(getNode());
  }
 protected final PsiElement getParentByTree() {
   return SharedImplUtil.getParent(getNode());
 }