public static LibraryInfo @NotNull [] getLibraryInfos(@Nullable Artifact version) {
    if (version == null) return LibraryInfo.EMPTY_ARRAY;

    final List<LibraryInfo> infos = convert(version.getUrlPrefix(), version.getItems());

    return infos.toArray(LibraryInfo.EMPTY_ARRAY);
  }
public static LibraryInfo @NotNull [] getLibraryInfos(@Nullable Artifact version)