public static Optional < MuteEvent > createMuteEvent ( Identification source ) { if ( source == null ) return Optional . empty ( ) ; try { MuteEvent muteRequest = new MuteEvent ( source ) ; return Optional . of ( muteRequest ) ; } catch ( IllegalArgumentException e ) { return Optional . empty ( ) ; } }
creates a new MuteEvent will mute everything