private void mute ( AddOnModel model ) { IdentificationManager . getInstance ( ) . getIdentification ( this ) . map ( id -> new EventMinimalImpl ( SoundIDs . MuteEvent . type , id , SoundIDs . MuteEvent . descriptors ) ) . map ( eventMinimal -> eventMinimal . addResource ( new ResourceMinimalImpl <> ( SoundIDs . MuteEvent . resourceSelector , eventMinimal . getSource ( ) , model , null ) ) ) . ifPresent ( event -> getMain ( ) . getEventDistributor ( ) . fireEventConcurrently ( event ) ) ; }
mutes the list of soundLines and fires the Mute - Event