public @Nullable Boolean toBoolean() {
    switch (this) {
      case TRUE: return Boolean.TRUE;
      case FALSE: return Boolean.FALSE;
      default: return null;
    }
  }
Converts this tri-state back into a {@link Boolean}.

@return the boolean representing this tri-state. {@link #NOT_SET} will be represented by {@code null}.
@since 4.10.0
api/src/main/java/net/kyori/adventure/util/TriState.java