void (final Module module, final Object dataFromContext) { if (!ModuleGrouperKt.isQualifiedModuleNamesEnabled(module.getProject())) { ModuleGroup group = (ModuleGroup) dataFromContext; if (group != null) { WriteAction.run(() -> { ModifiableModuleModel modifiableModel = ModuleManager.getInstance(module.getProject()).getModifiableModel(); modifiableModel.setModuleGroupPath(module, group.getGroupPath()); modifiableModel.commit(); }); } } }