@Override
    @NotNull
    public @NlsSafe String getDescriptiveName(@NotNull PsiElement element) {
        if (element instanceof PsiNamedElement) {
            final String name = ((PsiNamedElement)element).getName();
            if (name != null) return name;
        }
        return element.toString();
    }
@Override
    @NotNull
    public @NlsSafe String getDescriptiveName(@NotNull PsiElement element)