class LegacyConfigsHandler {

  @WorkerThread
  public boolean saveLegacyConfigsIfNecessary() {
    if (legacySettings.getBoolean(SAVE_LEGACY_CONFIGS_FLAG_NAME, true)) {
      saveLegacyConfigs(getConvertedLegacyConfigs());
      legacySettings.edit().putBoolean(SAVE_LEGACY_CONFIGS_FLAG_NAME, false).commit();
      return true;
    }
    return false;
  }

  public  LegacyConfigsHandler(Context context, String appId);

}