@ SuppressWarnings ( "unchecked" ) void registerConsumer ( Inspector < ? super OutT > subInspector ) { consumers . add ( ( Inspector < OutT > ) subInspector ) ; }
Inspector is contravariant in its type