@NonNull
    public HttpLoggingInterceptor.Level getHttpLoggingLevel() {
        final String savedHttpLoggingLevel = sharedPreferences.getString(KEY_HTTP_LOGGING_LEVEL, null);

        try {
            if (savedHttpLoggingLevel != null) {
                return HttpLoggingInterceptor.Level.valueOf(savedHttpLoggingLevel);
            }
        } catch (IllegalArgumentException noSuchLoggingLevel) {
            // After OkHttp update old logging level may be removed/renamed so we should handle such case.
            Timber.w("No such Http logging level in current version of the app. Saved loggingLevel = %s", savedHttpLoggingLevel);
        }

        return HttpLoggingInterceptor.Level.BASIC;
    }
Wrapper over {@link android.content.SharedPreferences} to store developer settings.
app/src/debug/java/com/artemzin/qualitymatters/developer_settings/DeveloperSettings.java