9cc6809ec6
- `JavaClass.modality` should return the correct modality instead of requiring the caller to handle annotation classes and enums.