List<CodeSampleInfo> (@NotNull LanguageCodeStyleSettingsProvider provider) { Set<String> processedSamples = new HashSet<>(); List<CodeSampleInfo> sampleInfos = new ArrayList<>(); for (SettingsType setting : settingValues) { String sample = provider.getCodeSample(setting); if (StringUtil.isEmpty(sample) || processedSamples.contains(sample)) { continue; } processedSamples.add(sample); sampleInfos.add(new CodeSampleInfo(setting, sample)); } return sampleInfos; }