private void addPortIfEnabled(
      final List<Integer> ports, final Integer port, final boolean enabled) {
    if (enabled) {
      ports.add(port);
    }
  }
Adds port to the specified list only if enabled.

@param ports The list of ports
@param port The port value
@param enabled true if enabled, false otherwise
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java