moduleType marked obselete in plugin.xml

moduleType in my plugin.xml comes up struckthrough in my IDE. Hovering shows that com.intellij.openapi.module.ModuleTypeEP but it’s not clear how I should register new module types?