/guava/guava/src/com/google/common/collect/Multimaps.java
if ( collection instanceof SortedSet) {   return unmodifiableSortedSet( ( ( SortedSet<V>) ( collection) ) ) ; }else   if ( collection instanceof Set) {     return unmodifiableSet( ( ( Set<V>) ( collection) ) ) ;   }else     if ( collection instanceof List) {       return unmodifiableList( ( ( List<V>) ( collection) ) ) ;     }
[Delete]
<E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass( Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else if (collection instanceof SortedSet) { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); <extra_id_0> return Collections.unmodifiableSet((Set<E>) collection); } else if (collection instanceof List) { return Collections.unmodifiableList((List<E>) collection); } else { return Collections.unmodifiableCollection(collection); }