With (List<? extends With> withElements, PsiField field) { for (With with : withElements) { PsiField withPsiField = DomUtil.hasXml(with.getTag()) ? with.getTag().getValue() : with.getAttribute().getValue(); if (field.getManager().areElementsEquivalent(field, withPsiField)) { return with; } } return null; }