public static boolean isClassAvailable(@NotNull ProblemsHolder holder, @NonNls String classFqn) {
    return JavaPsiFacade.getInstance(holder.getProject()).findClass(classFqn, holder.getFile().getResolveScope()) != null;
  }
public static boolean isClassAvailable(@NotNull ProblemsHolder holder, @NonNls String classFqn)