String (@NotNull final PsiElement element, @NotNull final ElementDescriptionLocation location) { if (location instanceof UsageViewLongNameLocation) { if (element instanceof PsiDirectory) { return PsiDirectoryFactory.getInstance(element.getProject()).getQualifiedName((PsiDirectory)element, true); } if (element instanceof PsiQualifiedNamedElement) { return ((PsiQualifiedNamedElement)element).getQualifiedName(); } return UsageViewShortNameLocation.INSTANCE.getDefaultProvider().getElementDescription( element, UsageViewShortNameLocation.INSTANCE); } return null; }