public static Optional<Endpoint> maybeDecodeStandalone(final RLPInput in) {
    try {
      return Optional.of(decodeStandalone(in));
    } catch (IllegalPortException __) {
      return Optional.empty();
    }
  }
Attempts to decodes the RLP stream as a standalone Endpoint instance, which is not part of a
Peer. If the from field is malformed, consumes the rest of the items in the list and returns
Optional.empty().

@param in The RLP input stream from which to read.
@return Some decoded endpoint if it was possible to decode it, empty otherwise.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/Endpoint.java