PsiElement (XmlElement xmlElement, final String value) { final Ref<PsiElement> result = new Ref<>(); processEnumeration(getDeclaration(), (element, s) -> { if (value.equals(s)) { result.set(element); return false; } return true; }, false); return result.get(); }