private static void prepareNewLibrary(@NotNull LibraryData libraryData,
                                 @NotNull String libraryName,
                                 @NotNull Library.ModifiableModel libraryModel) {
    Map<OrderRootType, Collection<File>> libraryFiles = prepareLibraryFiles(libraryData);
    Set<String> excludedPaths = libraryData.getPaths(LibraryPathType.EXCLUDED);
    registerPaths(libraryData.isUnresolved(), libraryFiles, excludedPaths, libraryModel, libraryName);
    EP_NAME.forEachExtensionSafe(extension -> extension.prepareNewLibrary(libraryData, libraryModel));
  }
private static void prepareNewLibrary(@NotNull LibraryData libraryData,
                                 @NotNull String libraryName,
                                 @NotNull Library.ModifiableModel libraryModel)