Due to the use of Generics in Java I ended up in having to implement a function having Void as return type:
Void
public Void doSomething() { //..
There's no way to instantiate a Void, so the only thing you can return is null.