code: @Nullable
      public static SSLSession findSslSession(@Nullable Channel channel, SessionProtocol sessionProtocol) {
          if (!sessionProtocol.isTls()) {
              return null;
          }
  
          return findSslSession(channel);
      }
docs: Finds the {@link SSLSession} of the current TLS connection.
  
  @return the {@link SSLSession} if found, or {@code null} if {@link SessionProtocol} is not TLS,
  the {@link SSLSession} is not found or {@link Channel} is {@code null}.