question: private void checkProtocolAlreadyExists ( Set < String > protocols , String protocolType ) { if ( ! protocols . contains ( protocolType ) ) { protocols . add ( protocolType ) ; } }
target:  Verify whether protocolType already exists or not. If it doesn't exist then add.