static Class boxedToPrimitiveTypeOpt(Class type) {
  ret or(boxedToPrimitiveType(type), type);
}