code: public void addFilterBefore(IRuleFilter filter, Class<? extends IRuleFilter> beforeFilter) {
          int index = getIndexOfClass(filters, beforeFilter);
          if (index == -1) {
              throw new FilterAddException("filter " + beforeFilter.getSimpleName() + " has not been added");
          }
          filters.add(index, filter);
      }
docs: add filter before
  @param filter
  @param beforeFilter