code: private static void addAction(@Nonnull Computer c, @Nonnull Action a) {
          try {
              c.addAction(a);
          } catch (UnsupportedOperationException x) {
              try {
                  Field actionsF = Actionable.class.getDeclaredField("actions");
                  actionsF.setAccessible(true);
                  @SuppressWarnings("unchecked")
                  List<Action> actions = (List) actionsF.get(c);
                  actions.add(a);
              } catch (Exception x2) {
                  LOGGER.log(Level.WARNING, null, x2);
              }
          }
      }
docs: TODO replace with {@link Computer#addAction} after core baseline picks up JENKINS-42969 fix