PsiJavaCodeReferenceElement () { PsiUtilCore.ensureValid(this); PsiImportStatementStub stub = getStub(); if (stub != null) { return stub.getReference(); } return (PsiJavaCodeReferenceElement)calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_REFERENCE); }