public synchronized <T, Y> ModelLoaderFactory<T, Y> unregister(Class<T> modelClass, Class<Y> resourceClass) {
        cachedModelLoaders.clear();

        ModelLoaderFactory/*T, Y*/ result = null;
        Map<Class/*Y*/, ModelLoaderFactory/*T, Y*/> resourceToFactories = modelClassToResourceFactories.get(modelClass);
        if (resourceToFactories != null) {
            result = resourceToFactories.remove(resourceClass);
        }
        return result;
    }
Removes and returns the registered {@link ModelLoaderFactory} for the given model and resource classes. Returns
null if no such factory is registered. Clears all cached model loaders.

@param modelClass The model class.
@param resourceClass The resource class.
@param <T> The type of the model the class.
@param <Y> The type of the resource class.
core/src/main/java/com/bumptech/glide/load/model/GenericLoaderFactory.java