DomElement (PsiElement resolve) { if (resolve instanceof PomTargetPsiElement) { final PomTarget target = ((PomTargetPsiElement)resolve).getTarget(); if(target instanceof DomTarget) { return ((DomTarget)target).getDomElement(); } return null; } return DomUtil.getDomElement(resolve); }