In Kotlin documentation for Java interop, it talks about getters and setters and how they relate to properties:
Methods that follow the Java conventions for getters and setters (no-argument methods with names starting with get and single-argument methods with names starting with set) are represented as properties in Kotlin.
And it provides the example:
import java.util.Calendar
fun calendarDemo() {
val calendar = Calendar.getInstance()
if (calendar.firstDayOfWeek == Calendar.SUNDAY) { // call getFirstDayOfWeek()
calendar.firstDayOfWeek = Calendar.MONDAY // call setFirstDayOfWeek()
}
}
The tip you are receiving in your IDE is telling you that it is better (idiomatic) to use the property syntax instead of calling a getter or setter directly. Therefore instead of using:
deploymentOptions.setConfig(...)
You would use:
deploymentOptions.config = ...