void (@NotNull List<Action> actions) { actions.sort(Comparator.comparing(action -> Objects.<Integer>requireNonNullElse( (Integer)action.getValue(MAC_ACTION_ORDER), action.getValue(DEFAULT_ACTION) == null ? 0 : DEFAULT_ACTION_ORDER))); }