I am developing a java project import plugin. I have managed to develop modules, set its libraries and module dependency.
Now I'd like to add for each module Spring facet. In my class I would detect which xml files are spring related for each module.
In intellij plugin development, how do I approach this? Assuming I got instance of module, modifiableRootModel, modifiableFacetModel?