You can create the necessary facets when creating a project or a module. Facets can also be added to existing modules.
IntelliJ IDEA is capable of auto-detecting facets. As soon as it finds a file or a directory typical of a certain framework or technology, it suggests that you create the corresponding facet.
In this section: