code: @Override
      public SocketAddress getLocalAddress() {
          Set<SocketAddress> localAddresses = getLocalAddresses();
          if (localAddresses.isEmpty()) {
              return null;
          }
  
          return localAddresses.iterator().next();
      }
docs: {@inheritDoc}