@Override
public void setupFacet(@NotNull final PbFacet facet, final ModifiableRootModel model) {
final PbFacet localFacet = facet;
final Module module = facet.getModule();
final Project project = module.getProject();
final ProtobufFacetConfiguration config = facet.getConfiguration();
ProtobufFacetConfiguration defaultConfiguration = (ProtobufFacetConfiguration)ProjectFacetManager.getInstance(project).createDefaultConfiguration(facet.getType());
config.setIsCompilationEnabled(defaultConfiguration.isCompilationEnabled());
if (StringUtil.isEmpty(config.getCompilerOutputPath())) {
if (!StringUtil.isEmpty(defaultConfiguration.getCompilerOutputPath())) {
config.setCompilerOutputPath(defaultConfiguration.getCompilerOutputPath());
} else {
final String text = PbBundle.message("facet.protobuf.configuration.missing_output_dir", module.getName());
NotificationGroup ng = NotificationGroup.balloonGroup("Framework Detection");
ng.createNotification("Framework configuration incomplete", text, NotificationType.INFORMATION, new NotificationListener() {
@Override