public static @NonNull Tristate of(Boolean val) {
        return val == null ? UNDEFINED : val ? TRUE : FALSE;
    }
Returns a {@link Tristate} from a nullable boolean.

<p>Unlike {@link #of(boolean)}, this method returns {@link #UNDEFINED}
if the value is null.</p>

@param val the boolean value
@return {@link #UNDEFINED}, {@link #TRUE} or {@link #FALSE}, if the value
        is <code>null</code>, <code>true</code> or <code>false</code>, respectively.
api/src/main/java/net/luckperms/api/util/Tristate.java