PsiElement (@NotNull PsiReference psiReference, boolean incompleteCode) { final TargetResolver.Result result = ((AntDomTargetReference)psiReference).doResolve(psiReference.getCanonicalText()); if (result == null) { return null; } final Pair<AntDomTarget,String> pair = result.getResolvedTarget(psiReference.getCanonicalText()); final DomTarget domTarget = pair != null && pair.getFirst() != null ? DomTarget.getTarget(pair.getFirst()) : null; return domTarget != null? PomService.convertToPsi(domTarget) : null; }