ValidationResultType (@NotNull String data, @NotNull EventContext context) { final String key = getEventDataField(context, "key"); final String group = getEventDataField(context, "group"); if (key == null || group == null || !isKeyOrGroup(data, key, group)) { return ValidationResultType.REJECTED; } return validateKeyGroup(key, group); }