private void Window_Loaded(object sender, RoutedEventArgs e) { setting = SettingSerializer.Load() ?? new TextViewerSetting(); var jsonPathsSetting = setting?.JsonText?.JsonPaths ?? new List <string>(0); jsonPathsSetting.ForEach(jsonPath => jsonPaths.Add(jsonPath)); }