code: public void addRuleParserAfter(IRuleParser parser, Class<? extends IRuleParser> afterParser) {
          int index = getIndexOfClass(ruleParsers, afterParser);
          if (index == -1) {
              throw new ParserAddException("parser " + afterParser.getSimpleName() + " has not been added");
          }
          ruleParsers.add(index + 1, parser);
      }
docs: add parser after
  @param parser
  @param afterParser