boolean (RegExpGroup group) { if (group.getType() == RegExpGroup.Type.NAMED_GROUP) { final String version = getGroovyVersion(group); return version != null && version.compareTo(GroovyConfigUtils.GROOVY2_0) >= 0; } return false; }