class AnalyzerConfig {

    public static Maven maven(Language... languages) {
        return maven(null, languages);
    }

}

class AnalyzerConfigTest {

    @Test
    void mavenModuleRedefinition() {

        assertThrows(IllegalStateException.class, () -> AnalyzerConfig.maven("code-assert-core").modules("").mainAndTest());
    }

}