private static @NlsContexts.PopupContent String getPopupText() {
      StringBuilder builder = new StringBuilder();
      GeneralSettings generalSettings = GeneralSettings.getInstance();
      if (generalSettings.isAutoSaveIfInactive()) {
        builder.append(ApplicationBundle.message("light.edit.autosave.widget.popup.text.time", generalSettings.getInactiveTimeout()));
      }
      if (generalSettings.isSaveOnFrameDeactivation()) {
        if (!builder.isEmpty()) {
          builder.append(",<br>");
        }
        String message = ApplicationBundle.message("light.edit.autosave.widget.popup.text.deactivation");
        if (!builder.isEmpty()) {
          message = message.replaceAll("<br>", " ");
        }
        builder.append(message);
      }
      if (builder.isEmpty()) {
        builder.append(ApplicationBundle.message("light.edit.autosave.widget.popup.text.on.close"));
      }
      return ApplicationBundle.message("light.edit.autosave.widget.popup.text", builder.toString());
    }
private static @NlsContexts.PopupContent String getPopupText()