* adds an action to the list of required actions
* @param actions list of required actions
* @param action an action to add
*/
private static void addActionToList(List<Class<? extends EcAction>> actions, EcAction action) {
if (action == null) throw new InvalidParameterException();
if (!actions.contains(action.getClass())) {
actions.add(action.getClass());
}
}