diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java b/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java index 8c6a51472124..ef8d32691a16 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java @@ -284,7 +284,7 @@ public class InspectionEngine { } else if (language instanceof MetaLanguage) { Collection matchingLanguages = ((MetaLanguage) language).getMatchingLanguages(); - result = new HashSet<>(); + result = new THashSet<>(); for (Language matchingLanguage : matchingLanguages) { result.addAll(getLanguageWithDialects(wrapper, matchingLanguage)); } @@ -297,9 +297,9 @@ public class InspectionEngine { @NotNull private static Set getLanguageWithDialects(@NotNull LocalInspectionToolWrapper wrapper, Language language) { - Set result;List dialects = language.getDialects(); + List dialects = language.getDialects(); boolean applyToDialects = wrapper.applyToDialects(); - result = applyToDialects && !dialects.isEmpty() ? new THashSet<>(1 + dialects.size()) : new SmartHashSet<>(); + Set result = applyToDialects && !dialects.isEmpty() ? new THashSet<>(1 + dialects.size()) : new SmartHashSet<>(); result.add(language.getID()); if (applyToDialects) { for (Language dialect : dialects) {