diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java index fb5d76fa046a..18a48944f420 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java @@ -327,7 +327,7 @@ public class GlobalInspectionContextBase extends UserDataHolderBase implements G @NotNull protected List getUsedTools() { - InspectionProfileImpl profile = new InspectionProfileImpl((InspectionProfileImpl)getCurrentProfile()); + InspectionProfileImpl profile = (InspectionProfileImpl)getCurrentProfile(); List tools = profile.getAllEnabledInspectionTools(myProject); Set dependentTools = new LinkedHashSet(); for (Tools tool : tools) {