String (@NotNull final PsiElement element, @NotNull final ElementDescriptionLocation location) { if (!(location instanceof UsageViewShortNameLocation)) return null; if (element instanceof PsiMetaOwner) { PsiMetaData metaData = ((PsiMetaOwner)element).getMetaData(); if (metaData!=null) return DescriptiveNameUtil.getMetaDataName(metaData); } if (element instanceof PsiNamedElement) { return ((PsiNamedElement)element).getName(); } return ""; }