public static @Nullable Library findLibrary(@NotNull Module module, final @NotNull String name) {
    final Ref<Library> result = Ref.create(null);
    OrderEnumerator.orderEntries(module).forEachLibrary(library -> {
      if (name.equals(library.getName())) {
        result.set(library);
        return false;
      }
      return true;
    });
    return result.get();
  }
public static @Nullable Library findLibrary(@NotNull Module module, final @NotNull String name)