@RequiresReadLock
  public static boolean hasLibraryJar(@Nullable Project project, @NotNull String mavenCoords) {
    if (project == null || project.isDisposed()) return false;
    if (project.isDefault()) return false; // EA-396106

    return getProjectLibraries(project).contains(mavenCoords);
  }
@RequiresReadLock
  public static boolean hasLibraryJar(@Nullable Project project, @NotNull String mavenCoords)