void () { if (!myProjectsManager.isMavenizedModule(myModule)) return; var mavenProject = myProjectsManager.findProject(myModule); if (null == mavenProject) return; myGroupId = mavenProject.getMavenId().getGroupId(); var modules = ModuleManager.getInstance(myProject).getModules(); for (var module : modules) { if (module == myModule) { processModule(module, this::replaceModuleArtifactId); } else { processModule(module, this::replaceArtifactIdReferences); } } }