Source:
<code>public static BiConsumer createSetterFunction(Method setterMethod, Class<?> propertyType, MethodHandles.Lookup lookup) { final PropertySetterFactory propertySetterFactory; if (Object.class.isAssignableFrom(propertyType)) { propertySetterFactory = new ObjectPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Boolean.TYPE)) { propertySetterFactory = new BooleanPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Integer.TYPE)) { propertySetterFactory = new IntPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Long.TYPE)) { propertySetterFactory = new LongPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Float.TYPE)) { propertySetterFactory = new FloatPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Double.TYPE)) { propertySetterFactory = new DoublePropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Character.TYPE)) { propertySetterFactory = new CharPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Byte.TYPE)) { propertySetterFactory = new BytePropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Short.TYPE)) { propertySetterFactory = new ShortPropertySetterFactory(setterMethod, propertyType, lookup); } else { <START> throw new IllegalArgumentException("Unsupported property type " + propertyType); <END> } return propertySetterFactory.wrapSetterFunction(); }</code><technical_language>optaplanner's exceptions this style: throw new IllegalArgumentException("Unsupported property type (" + propertyType + ").);</technical_language>

Target:
public static BiConsumer createSetterFunction(Method setterMethod, Class<?> propertyType, MethodHandles.Lookup lookup) { final PropertySetterFactory propertySetterFactory; if (Object.class.isAssignableFrom(propertyType)) { propertySetterFactory = new ObjectPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Boolean.TYPE)) { propertySetterFactory = new BooleanPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Integer.TYPE)) { propertySetterFactory = new IntPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Long.TYPE)) { propertySetterFactory = new LongPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Float.TYPE)) { propertySetterFactory = new FloatPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Double.TYPE)) { propertySetterFactory = new DoublePropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Character.TYPE)) { propertySetterFactory = new CharPropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Byte.TYPE)) { propertySetterFactory = new BytePropertySetterFactory(setterMethod, propertyType, lookup); } else if (propertyType.equals(Short.TYPE)) { propertySetterFactory = new ShortPropertySetterFactory(setterMethod, propertyType, lookup); } else { throw new IllegalArgumentException("Unsupported property type (" + propertyType + ")."); } return propertySetterFactory.wrapSetterFunction(); }