PsiElement () { T stub = getGreenStub(); if (stub != null && !((ObjectStubBase<?>)stub).isDangling()) { return stub.getParentStub().getPsi(); } return SourceTreeToPsiMap.treeElementToPsi(getNode().getTreeParent()); }