code: public ParserStatistics visit(ActionMatcher matcher) {
          if (!actions.contains(matcher.action)) {
              totalRules++;
              actions.add(matcher.action);
              actionClasses.add(matcher.action.getClass());
          }
          return this;
      }
docs: MatcherVisitor interface