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