String (final @NotNull PsiElement element, final @NotNull ElementDescriptionLocation location) { if (location instanceof UsageViewShortNameLocation) { if (element instanceof XmlAttributeValue) { return ((XmlAttributeValue)element).getValue(); } } if (location instanceof UsageViewLongNameLocation) { if (element instanceof XmlTag) { return ((XmlTag)element).getName(); } else if (element instanceof XmlAttributeValue) { return ((XmlAttributeValue)element).getValue(); } } return null; }