public static Cons helpGetForwardChainingRules(Description description) {
    { Cons rules = Stella.NIL;

      { ForwardChainingIndex idx = null;
        Cons iter000 = description.forwardChainingIndices().theConsList;
        Cons collect000 = null;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          idx = ((ForwardChainingIndex)(iter000.value));
          if (!idx.masterRule.deletedP()) {
            if (collect000 == null) {
              {
                collect000 = Cons.cons(idx.masterRule, Stella.NIL);
                if (rules == Stella.NIL) {
                  rules = collect000;
                }
                else {
                  Cons.addConsToEndOfConsList(rules, collect000);
                }
              }
            }
            else {
              {
                collect000.rest = Cons.cons(idx.masterRule, Stella.NIL);
                collect000 = collect000.rest;
              }
            }
          }
        }
      }
      return (rules);
    }
  }