public static List<Validation> computeFlagsFromCSVString(String csvString,
                                                             Log log) {
        List<Validation> flags = new ArrayList<>();
        boolean resetFlag = false;
        for (String p : csvString.split(",")) {
            try {
                flags.add(Validation.valueOf(p));
            } catch (IllegalArgumentException e) {
                log.info("validateDMN configured with flag: '" + p + "' determines this Mojo will not be executed (reset all flags).");
                resetFlag = true;
            }
        }
        if (resetFlag) {
            flags.clear();
        }
        return flags;
    }
@Test
    public void testFlagsDisable() {
        List<DMNValidator.Validation> result = DMNValidationHelper.computeFlagsFromCSVString("disabled", log);
        assertThat(result).isNotNull()
                .hasSize(0);
    }