public void ifNatEnvironment(
      final NatMethod natMethod, final Consumer<? super NatManager> action) {
    if (isNatEnvironment()) {
      currentNatManager.filter(s -> natMethod.equals(s.getNatMethod())).ifPresent(action);
    }
  }
If nat environment is present, performs the given action, otherwise does nothing.

@param natMethod specific on which only this action must be performed
@param action the action to be performed, if a nat environment is present
nat/src/main/java/org/hyperledger/besu/nat/NatService.java