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() { //..
just like this.
public Class TestClass { public void testMethod () { return; } }