@RequiresReadLock
  public static @Nullable String getLibraryVersion(@NotNull Module module,
                                                   @NotNull String mavenCoords,
                                                   @Nullable Attributes.Name versionAttribute) {
    String externalSystemId = ExternalSystemModulePropertyManager.getInstance(module).getExternalSystemId();
    if (isUnsupportedBuildSystem(externalSystemId)) {
      return getJpsLibraryVersion(module, mavenCoords, versionAttribute);
    }
    else {
      return getExternalSystemLibraryVersion(module, mavenCoords);
    }
  }
@RequiresReadLock
  public static @Nullable String getLibraryVersion(@NotNull Module module,
                                                   @NotNull String mavenCoords,
                                                   @Nullable Attributes.Name versionAttribute)