Change SafeMethod#getReturnType to return Class<T>