@SuppressWarnings("checkstyle:MethodName")
  static @Nullable Component getMessage(final @Nullable Throwable throwable) {
    if (throwable instanceof ComponentMessageThrowable) {
      return ((ComponentMessageThrowable) throwable).componentMessage();
    }
    return null;
  }
Gets the {@link Component}-based message from a {@link Throwable}, if available.

@param throwable the throwable
@return the message
@since 4.0.0
api/src/main/java/net/kyori/adventure/util/ComponentMessageThrowable.java