final String enabledInScope = scopeElement.getAttributeValue(InspectionProfileImpl.ENABLED_TAG);
<BUG>final InspectionProfileEntry InspectionProfileEntry =
</BUG>
((InspectionProfileImpl)profile).myRegistrar.createInspectionTool(myShortName, tool);
<BUG>InspectionProfileEntry.readSettings(scopeElement);

addTool(namedScope, InspectionProfileEntry, enabledInScope != null && Boolean.parseBoolean(enabledInScope),
errorLevel != null ? HighlightDisplayLevel
.find(((SeverityProvider)profileManager).getOwnSeverityRegistrar().getSeverity(errorLevel)) : level);
}</BUG>
}

final String enabledInScope = scopeElement.getAttributeValue(InspectionProfileImpl.ENABLED_TAG);
final InspectionProfileEntry copyTool =
((InspectionProfileImpl)profile).myRegistrar.createInspectionTool(myShortName, tool);
copyTool.readSettings(scopeElement);
final HighlightDisplayLevel scopeLevel = errorLevel != null ? HighlightDisplayLevel
.find(((SeverityProvider)profileManager).getOwnSeverityRegistrar().getSeverity(errorLevel)) : level;
if (namedScope != null) {
addTool(namedScope, copyTool, enabledInScope != null && Boolean.parseBoolean(enabledInScope), scopeLevel);
} else {
addTool(scopeName, copyTool, enabledInScope != null && Boolean.parseBoolean(enabledInScope), scopeLevel);
