public static @NotNull TriState byBoolean(final boolean value) {
    return value ? TRUE : FALSE;
  }
Gets a state from a {@code boolean}.

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