Don't use StubBasedPsiElementBase#getStubOrPsiParent

#KT-9579 Fixed
This commit is contained in:
Pavel V. Talanov
2015-10-14 15:24:04 +03:00
parent bfcabad148
commit 53b21061fd
@@ -113,7 +113,7 @@ public class JetAnnotationEntry extends JetElementImplStub<KotlinAnnotationEntry
JetAnnotationUseSiteTarget target = getStubOrPsiChild(JetStubElementTypes.ANNOTATION_TARGET);
if (target == null) {
PsiElement parent = getStubOrPsiParent();
PsiElement parent = getParentByStub();
if (parent instanceof JetAnnotation) {
return ((JetAnnotation) parent).getUseSiteTarget();
}