jk
return when (arg) { is Function0 -> arg.invoke() is Boolean -> arg.toString() else -> throw IllegalArgumentException("Unsupported type")