@Override
    @NotNull
    public String getType(@NotNull PsiElement element) {
        if (element instanceof XsltParameter) {
            return getParameterType((XsltParameter)element);
        }
        if (element instanceof XPathVariable) return XPathBundle.message("find.usages.type.variable");
        if (element instanceof XsltTemplate) return XPathBundle.message("find.usages.type.template");
        if (element instanceof XPathFunction) return XPathBundle.message("find.usages.type.function");
        if (element instanceof ImplicitModeElement) return XPathBundle.message("find.usages.type.mode");
        return XPathBundle.message("find.usages.type.unknown");
    }
@Override
    @NotNull
    public String getType(@NotNull PsiElement element)