@Override
  protected @NotNull Collection<? extends ActionOnSaveInfo> getActionOnSaveInfos(@NotNull ActionOnSaveContext context) {
    return List.of(new ActionOnSaveInfoBase(context, CopyrightBundle.message("checkbox.update.copyright.notice"), UPDATE_COPYRIGHT_ON_SAVE, UPDATE_COPYRIGHT_BY_DEFAULT) {
      @Override
      public @NotNull List<? extends ActionLink> getActionLinks() {
        return List.of(createGoToPageInSettingsLink(CopyrightBundle.message("link.label.configure.copyright.settings"),
                                                    CopyrightProjectConfigurable.ID));
      }

      private boolean hasCopyrights() {
        Configurable configurable = getSettings().getConfigurableWithInitializedUiComponent(CopyrightProjectConfigurable.ID, false);
        CopyrightProjectConfigurable copyrightProjectConfigurable = ConfigurableWrapper.cast(CopyrightProjectConfigurable.class, configurable);
        if (copyrightProjectConfigurable != null) {
          return copyrightProjectConfigurable.hasAnyCopyrights();
        }
        return CopyrightManager.getInstance(context.getProject()).hasAnyCopyrights();
      }

      @Override
      public boolean isSaveActionApplicable() {
        return hasCopyrights();
      }

      @Override
      public ActionOnSaveComment getComment() {
        return ActionOnSaveComment.info(CopyrightBundle.message(hasCopyrights()
                                                                ? "label.updates.existing.copyrights.e.g.changes.year.or.updated.notice"
                                                                : "label.no.copyright.configured"));
      }
    });
  }
@Override
  protected @NotNull Collection<? extends ActionOnSaveInfo> getActionOnSaveInfos(@NotNull ActionOnSaveContext context)