void (@NotNull LanguageCodeStyleSettingsProvider provider, @NotNull List<CodeSampleInfo> samples) { for (CodeSampleInfo sample : samples) { Collection<PsiErrorElement> errorReports = getErrorsForText(provider, sample.codeSample); if (errorReports.isEmpty()) { continue; } this.errorReports.add(new CodeErrorReport(sample, provider.getLanguage(), errorReports)); } }