code: @Override
      public InetSocketAddress getRemoteAddress() {
          if (ch == null) {
              return null;
          }
  
          Socket socket = ch.socket();
  
          if (socket == null) {
              return null;
          }
  
          return (InetSocketAddress) socket.getRemoteSocketAddress();
      }
docs: {@inheritDoc}