AddSupportForSingleFrameworkDialog (@NotNull Module module, @NotNull FrameworkSupportInModuleProvider provider) { List<FrameworkSupportInModuleProvider> providers = FrameworkSupportUtil.getProviders(module, DefaultFacetsProvider.INSTANCE); if (providers.isEmpty()) return null; IdeaModifiableModelsProvider modifiableModelsProvider = new IdeaModifiableModelsProvider(); LibrariesContainer container = LibrariesContainerFactory.createContainer(modifiableModelsProvider.getModuleModifiableModel(module)); return new AddSupportForSingleFrameworkDialog(module, provider.getFrameworkType(), provider, container, modifiableModelsProvider); }