@Override
                  public void visit(RngGrammar grammar) {
                    final Map<String, Set<Define>> map = DefinitionResolver.getAllVariants(grammar);
                    if (map != null) {
                      ref.set(map.keySet().toArray());
                    }
                  }
@Override
                  public void visit(RngGrammar grammar)