boolean (final @NotNull PsiElement element) { final Converter<T> converter = getConverter(); if (converter instanceof ResolvingConverter) { T value = myGenericValue.getValue(); if (value instanceof DomElement && element instanceof PomTargetPsiElementImpl) { PomTarget target = ((PomTargetPsiElementImpl)element).getTarget(); if (target instanceof DomTarget) { if (value.equals(((DomTarget)target).getDomElement())) { return true; } } } return ((ResolvingConverter<T>)converter).isReferenceTo(element, getStringValue(), value, getConvertContext()); } return super.isReferenceTo(element); }