String (final Object element) { if (element instanceof XmlTag) { return ((XmlTag)element).getLocalName(); } else if (element instanceof PsiType) { return ((PsiType) element).getPresentableText(); } else { return super.getTextByElement(element); } }