If I needed to automate generation of classes like...
# intellij
d
If I needed to automate generation of classes like the second from classes like the first, what would be possible steps? Should I write a new plugin or is there an easier way?
Copy code
data class MyCommand(val param1: Long, val param2: String): Command

@Service
open class MyCommandHandler : CommandHandler<MyCommand> {
    override fun handle(command: MyCommand) {
        throw UnsupportedOperationException("not implemented")
    }
}