Use generics.
Proper way to call a static method.