Use the javax.lang.model.element.Modifier enum instead of ints in the JavaWriter API.
Add some overloads to avoid calls to EnumSet.noneOf()
Remove an extra null check.