public static void setAccepted(@NotNull Document doc) {
    final Version version = doc.getVersion();
    String versionKey = getAcceptedVersionKey(doc.getName());
    if (version.isUnknown()) {
      Prefs.remove(versionKey);
    }
    else {
      Prefs.put(versionKey, version.toString());
    }
  }
public static void setAccepted(@NotNull Document doc)