void (@NotNull Project project, @NotNull List<? extends Module> modules, @NotNull Function<? super Module, String> oldNameProvider) { for (var module : modules) { new MavenRenameModuleHandler(project, module, oldNameProvider.fun(module)).handleModuleRename(); } }