PsiJavaCodeReferenceElement () { TreeElement firstChildNode = getFirstChildNode(); if (firstChildNode == null) return null; if (firstChildNode.getElementType() == JavaElementType.TYPE) { return SourceTreeToPsiMap.<PsiTypeElement>treeToPsiNotNull(firstChildNode).getInnermostComponentReferenceElement(); } return getReferenceElement(); }