public BaseMatcher(final NetworkConfig config){
  if (config == null) {
    throw new NullPointerException("Config must not be null");
  }
 else {
    this.config=config;
  }
}

public BaseMatcher ( final NetworkConfig config ) { if ( config == null ) { throw new NullPointerException ( "Config must not be null" ) ; } else { this . config = config ; } }
creates a new matcher based on configuration values .
