void () { myFixture.enableInspections(GroovyAssignabilityCheckInspection.class, GrUnresolvedAccessInspection.class); myFixture.configureByText("A.groovy", """ new groovy.xml.MarkupBuilder().root { a() b {} c(2) {} d(a: 1) {} e(b: 2, {}) f(c: 3, d: 4) g(e: 5, [1, 2, 3], f: 6) h([g: 7, h: 8], new Object()) i(new Object(), i: 9, j: 10) {} j([k: 11, l: 12], new Object(), {}) k(new Object()) l(new Object(), [m: 13]) m(new Object(), [n: 14]) {} n(new Object(), [o: 15], {}) foo<warning>("a", "b")</warning> } """); myFixture.testHighlighting(true, false, true); }