public boolean isEnabledForModuleType(@NotNull final ModuleType moduleType) {
return myFacetType.isSuitableModuleType(moduleType);
}
public boolean isSupportAlreadyAdded(@NotNull final Module module) {
return !FacetManager.getInstance(module).getFacetsByType(myFacetType.getId()).isEmpty();
<BUG>}
protected void addSupport(final Module module, final ModifiableRootModel rootModel, final String version, final @Nullable Library library) {</BUG>
ModifiableFacetModel model = FacetManager.getInstance(module).createModifiableModel();
Facet underlyingFacet = null;
FacetTypeId<?> underlyingFacetType = myFacetType.getUnderlyingFacetType();

public boolean isEnabledForModuleType(@NotNull final ModuleType moduleType) {
return myFacetType.isSuitableModuleType(moduleType);
}
public boolean isSupportAlreadyAdded(@NotNull final Module module) {
return !FacetManager.getInstance(module).getFacetsByType(myFacetType.getId()).isEmpty();
}
public Icon getIcon() {
return myFacetType.getIcon();
}
protected void addSupport(final Module module, final ModifiableRootModel rootModel, final String version, final @Nullable Library library) {
ModifiableFacetModel model = FacetManager.getInstance(module).createModifiableModel();
Facet underlyingFacet = null;
FacetTypeId<?> underlyingFacetType = myFacetType.getUnderlyingFacetType();
