Specify return types explicitly

Some methods return anonymous class because it doesn't have return type annotation.