Is it possible to have a list of function (references) that I can call, like val functions = asList(MyClass::fun1, MyClass::fun2) and then functions.forEach(function -> function...?) ? IDEA gives me strange signature for this list:
MutableList<KFunction2<MyClass, @ParameterName(
name = "fooId"
) FooId, Unit>>
where function is
private fun fun1(fooId: FooId) {}