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

@param flag the boolean
@return the state
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/format/TextDecoration.java