private void addErrsForElement(List<RuntimeException> errs, AddObjectToArrayInput input) {
        if (input.getElement() == null) {
            String msg = String.format(ExceptionMsgs.NULL_OR_EMPTY_INPUT, Constants.InputNames.ELEMENT);
            errs.add(new IllegalArgumentException(msg));
        }