@Override
    public String @NotNull [] getVariablesInScope(XPathElement element) {
      final Collection<Variable> variables = myVariableTableModel.getVariables();
      return Variable.asSet(variables).toArray(new String[variables.size()]);
    }
@Override
    public String @NotNull [] getVariablesInScope(XPathElement element)