@Override
    public XsltVariable @NotNull [] getVariablesInScope(XPathElement element) {
        final XmlTag context = getContextTagImpl(element);
        final VariantsProcessor processor = new VariantsProcessor(context);

        ResolveUtil.treeWalkUp(processor, context);
        processForwardGlobals(context, processor);
        return processor.getResult();
    }
@Override
    public XsltVariable @NotNull [] getVariablesInScope(XPathElement element)