kotlin function name with to from code example Example: how to get function name in kotlin val name = object{}.javaClass.enclosingMethod.name