void (@NotNull JpsModule module, @NotNull Element rootElement) { boolean isMavenModule = Boolean.parseBoolean(rootElement.getAttributeValue(MAVEN_MODULE_ATTRIBUTE)) || rootElement.getChildren().stream() .anyMatch(element -> MAVEN_SYSTEM_ID.equals(element.getAttributeValue("externalSystem"))); if (isMavenModule) { JpsMavenModuleExtension extension = JpsMavenExtensionService.getInstance().getOrCreateExtension(module); Element component = JDomSerializationUtil.findComponent(rootElement, MavenAnnotationProcessorsModel.COMPONENT_NAME); if (component != null) { MavenAnnotationProcessorsModel annotationProcessorsModel = deserialize(component, MavenAnnotationProcessorsModel.class); extension.getAnnotationProcessorModules().addAll(annotationProcessorsModel.annotationProcessorModules); } } }