code: public static List<Action> getActions(MonitoringRule rule, String nameFilter) {
          List<Action> result = new ArrayList<Action>();
  
          if (nameFilter == null) {
              throw new NullPointerException("nameFilter cannot be null");
          }
          for (Action action : getActions(rule)) {
              if (nameFilter.equalsIgnoreCase(action.getName())) {
                  result.add(action);
              }
          }
          return result;
      }
docs: Get the actions of a rule filtered by its name