Change condition to compare with ParameterizedType