final String[] events = info.on();  if (events.length == 0 || event == null) { return true; } else if (events[0].startsWith("!")) { return !contains(events, "!" + event); } else { return contains(events, event); }
return CollectionUtil.applies(info.on(), event);
    public static boolean applies(ValidationMethod info, String event) {        final String[] events = info.on();        if (events.length == 0 || event == null) {            return true;        }        else if (events[0].startsWith("!")) {            return !contains(events, "!" + event);        }        else {            return contains(events, event);        }    }