private void addPortIfNotNull(List<ServicePort> ret, ServicePort port) {
        if (port != null) {
            ret.add(port);
        }
    }
private void addPortIfNotNull(List<ServicePort> ret, ServicePort port) {
        if (port != null) {
            ret.add(port);
        }
    }
private void addPortIfNotNull ( List < ServicePort > ret , ServicePort port ) { if ( port != null ) { ret . add ( port ) ; } }
null ports can happen for ignored mappings
null ports can happen for ignored mappings