Java to Kotlin conversion: fixed a few bugs related to modifiers