docs: public static Rule conditionsRule(final Set<Condition> conditions, StateObj results) {
          if (null == conditions) {
              throw new NullPointerException("conditions must not be null");
          }
          final StateObj newstate = States.state(results);
          return new Rule() {
              @Override
              public boolean test(final StateObj input) {
                  return applyConditions(input, conditions, true);
              }
  
              @Override
              public StateObj evaluate(final StateObj stateObj) {
                  if (test(stateObj)) {
                      return newstate;
                  }
                  return null;
              }
  
              @Override
              public String toString() {
                  return "Rule: Conditions(" + conditions + ") => " + newstate;
              }
          };
      }