private static @NotNull OrderEntry importMissingModuleLibraryOrderEntry(@NotNull LibraryDependencyData dependencyData,
                                                                          @NotNull ModifiableRootModel moduleRootModel,
                                                                          @NotNull IdeModifiableModelsProvider modelsProvider,
                                                                          @NotNull Module module
  ) {
    final Library moduleLib;
    final LibraryData libraryData = dependencyData.getTarget();
    final String libraryName = libraryData.getInternalName();
    LibraryTable moduleLibraryTable = moduleRootModel.getModuleLibraryTable();
    if (libraryName.isEmpty()) {
      moduleLib = moduleLibraryTable.createLibrary();
    }
    else {
      moduleLib = moduleLibraryTable.createLibrary(libraryName);
    }
    return syncExistingLibraryDependency(modelsProvider, dependencyData, moduleLib, moduleRootModel, module, null);
  }
private static @NotNull OrderEntry importMissingModuleLibraryOrderEntry(@NotNull LibraryDependencyData dependencyData,
                                                                          @NotNull ModifiableRootModel moduleRootModel,
                                                                          @NotNull IdeModifiableModelsProvider modelsProvider,
                                                                          @NotNull Module module
  )