void (Module module, MavenProject mavenProject, MavenProjectChanges changes, IdeModifiableModelsProvider modifiableModelsProvider) { var processorModuleNames = ANNOTATION_PROCESSOR_MODULE_NAMES.get(modifiableModelsProvider, Map.of()).getOrDefault(mavenProject, List.of()); var moduleWithType = new ModuleWithType<Module>() { @Override public Module getModule() { return module; } @NotNull @Override public MavenModuleType getType() { return StandardMavenModuleType.SINGLE_MODULE; } }; var projectWithModules = new MavenProjectWithProcessorModules(mavenProject, List.of(moduleWithType), processorModuleNames); configureProfiles(module.getProject(), MavenProjectsManager.getInstance(module.getProject()).getProjectsTree(), List.of(projectWithModules), moduleName -> modifiableModelsProvider.findIdeModule(moduleName)); }