PsiElement (XmlElement xmlElement, String value) { if (value != null && value.startsWith("%")) return xmlElement; final PsiClass aClass = getEnum(); if (aClass != null) { final PsiField fieldByName = aClass.findFieldByName(value, true); return fieldByName != null ? fieldByName : aClass.findFieldByName(StringUtil.toUpperCase(value), true); } return xmlElement; }