Revert change to getGenericType