public static @NotNull TriState byBoolean(final @Nullable Boolean value) {
    return value == null ? NOT_SET : byBoolean(value.booleanValue());
  }
Gets a state from a {@link Boolean}.

@param value the boolean
@return a tri-state
@since 4.8.0
api/src/main/java/net/kyori/adventure/util/TriState.java