docs: @Nonnull
      public static String migrateLegacyPrimaryAllViewLocalizedName(@Nonnull List<View> views,
                                                                    @Nonnull String primaryView) {
          if (DEFAULT_VIEW_NAME.equals(primaryView)) {
              // modern name, we are safe
              return primaryView;
          }
          if (SystemProperties.getBoolean(AllView.class.getName()+".JENKINS-38606", true)) {
              AllView allView = null;
              for (View v : views) {
                  if (DEFAULT_VIEW_NAME.equals(v.getViewName())) {
                      // name conflict, we cannot rename the all view anyway
                      return primaryView;
                  }
                  if (StringUtils.equals(v.getViewName(), primaryView)) {
                      if (v instanceof AllView) {
                          allView = (AllView) v;
                      } else {
                          // none of our business fixing as we can only safely fix the primary view
                          return primaryView;
                      }
                  }
              }
              if (allView != null) {
                  // the primary view is an AllView but using a non-default name
                  for (Locale l : Locale.getAvailableLocales()) {
                      if (primaryView.equals(Messages._Hudson_ViewName().toString(l))) {
                          // bingo JENKINS-38606 detected
                          LOGGER.log(Level.INFO,
                                  "JENKINS-38606 detected for AllView in {0}; renaming view from {1} to {2}",
                                  new Object[] {allView.owner, primaryView, DEFAULT_VIEW_NAME});
                          allView.name = DEFAULT_VIEW_NAME;
                          return DEFAULT_VIEW_NAME;
                      }
                  }
              }
          }
          return primaryView;
      }