return result;
}
public void writeExternal(Element inspectionElement) throws WriteExternalException {
if (myTools != null) {
for (ScopeToolState state : myTools) {
<BUG>final NamedScope namedScope = state.getScope();</BUG>
final Element scopeElement = new Element("scope");
<BUG>scopeElement.setAttribute("name", namedScope.getName());
</BUG>
scopeElement.setAttribute(InspectionProfileImpl.LEVEL_TAG, state.getLevel().toString());

return result;
}
public void writeExternal(Element inspectionElement) throws WriteExternalException {
if (myTools != null) {
for (ScopeToolState state : myTools) {
final Element scopeElement = new Element("scope");
scopeElement.setAttribute("name", state.getScopeName());
scopeElement.setAttribute(InspectionProfileImpl.LEVEL_TAG, state.getLevel().toString());
