question: private void ensureStatusStreamListenerIsSet ( ) { if ( statusListeners . size ( ) == 0 && rawStreamListeners . size ( ) == 0 ) throw new IllegalStateException ( "StatusListener is not set." ) ; }
target:  check if any listener is set. Throws IllegalStateException if no listener is set.