boolean (GrListOrMap literal) { GroovyConstructorReference reference = literal.getConstructorReference(); if (reference != null) { if (isCorrectReference(reference) && !myConsumer.process(reference)) { return false; } } return true; }