data classes have a copy() factory method that can be used similarly to a constructor, so making
a constructor private does not provide enough safety.
Example:
data class User private constructor(val name: String)
A quick-fix is suggested to make the constructor public:
data class User(val name: String)