if (!(md instanceof GeneratableSModel) || !(((GeneratableSModel) md).isGeneratable())) return;
if (md.getModule() == null) return;
final ProjectModuleTreeNode moduleNode = getContainingModuleNode(modelNode);
boolean wasChanged = ((EditableSModel) md).isChanged();
if (moduleNode.getModule().isReadOnly()) {
<BUG>addUpdate(modelNode, new GenStatusNodeUpdate(GenerationStatus.READONLY.getMessage()));

addUpdate(moduleNode, new GenStatusNodeUpdate(GenerationStatus.READONLY.getMessage()));
</BUG>
return;

if (!(md instanceof GeneratableSModel) || !(((GeneratableSModel) md).isGeneratable())) return;
if (md.getModule() == null) return;
final ProjectModuleTreeNode moduleNode = getContainingModuleNode(modelNode);
boolean wasChanged = ((EditableSModel) md).isChanged();
if (moduleNode.getModule().isReadOnly()) {
addUpdate(modelNode, new AdditionalTextNodeUpdate(GenerationStatus.READONLY.getMessage()));
addUpdate(moduleNode, new AdditionalTextNodeUpdate(GenerationStatus.READONLY.getMessage()));
return;
