public static <S extends Enum<S> & BooleanSetting> BooleanSettingMapFactory<S> create(Class<S> settingsEnum) {
        Objects.requireNonNull(settingsEnum, "settingsEnum");
        return create(settingsEnum.getEnumConstants());
    }
Creates a new {@link BooleanSettingMapFactory} for the given {@link BooleanSetting} enum.

<p>Factories should ideally be cached (stored in a static field) in the
setting enum and reused.</p>

@param settingsEnum the setting class
@param <S> the class type
@return a new factory
helper/src/main/java/me/lucko/helper/setting/BooleanSettingMapFactory.java