Well for JVM it will be perfectly fine. But I can imagine that for stdlib compatibility with other languages it may not fit very well.
I thought about creating live template for generating this kind of functions but It will not make big difference for only few usages in project.