code: public static Rule conditionsRule(final Condition condition, StateObj result) {
          HashSet<Condition> conditions = new HashSet<>();
          conditions.add(condition);
          return conditionsRule(conditions, result);
      }
docs: Create a rule: predicate(conditions) => new state(results)
  
  @param condition single condition
  @param result    result
  
  @return rule