Is it possible to get a reference to the constructor of an anonymous class?
For example:
void someMethod(Function<String, SomeInterface> factory)
could be used as:
someMethod(SomeClass::new)
or
someMethod(str -> new SomeInterface(){...});
In the second case I used a lambda expression but I want a function reference.