code: public static AlternateTypeRule newRule(Type original, Type alternate, int order) {
      TypeResolver resolver = new TypeResolver();
      return new AlternateTypeRule(resolver.resolve(original), resolver.resolve(alternate), order);
    }
docs: Helper method to create a new alternate rule.
  
  @param original  the original
  @param alternate the alternate
  @param order the order in which the rule is applied. {@link org.springframework.core.Ordered}
  @return the alternate type rule