@Override
  public XsltFunction @NotNull [] getFunctions() {
    final XmlDocument document = PsiTreeUtil.getParentOfType(getTag(), XmlDocument.class);
    return convertArray(ResolveUtil.collect(new FunctionMatcher(document)), XsltFunction.class);
  }
@Override
  public XsltFunction @NotNull [] getFunctions()