void (int stage) { if (stage == 0) { final JpsModule toRename = myModuleToRename; if (toRename != null) { myModuleToRename = null; final String name = toRename.getName(); toRename.setName(name + "_renamed"); } } super.modify(stage); }