Module (final ModuleBuilder moduleBuilder) { final Module module = createModule(moduleBuilder); if (module != null) { ApplicationManager.getApplication().runWriteAction(() -> { getOrCreateModuleEditor(module); }); processModuleCountChanged(); } return module; }