boolean (@NotNull PsiElement element) { // optimization to exclude obvious variants final DomElement domElement = AntDomReferenceBase.toDomElement(element); if (domElement instanceof AntDomProperty prop) { final String propName = prop.getName().getRawText(); if (propName != null && prop.getPrefix().getRawText() == null && prop.getEnvironment().getRawText() == null) { // if only 'name' attrib is specified if (!propName.equalsIgnoreCase(getCanonicalText())) { return false; } } } return super.isReferenceTo(element); }