I guess this types are the method param types, right? You can make this method simpler.