class MediatorLiveData extends MutableLiveData<T> {

    @MainThread
    public <S> void removeSource(LiveData<S> toRemote) {
        Source<?> source = mSources.remove(toRemote);
        if (source != null) {
            source.unplug();
        }
    }

}