public static boolean isClassAvailableInLibrary(@NotNull Library library, @NotNull String fqn) {
    return isClassAvailableInLibrary(library.getFiles(OrderRootType.CLASSES), fqn);
  }
public static boolean isClassAvailableInLibrary(@NotNull Library library, @NotNull String fqn)