boolean (RegExpNamedGroupRef namedGroupRef1, RegExpNamedGroupRef namedGroupRef2) { final String name = namedGroupRef1.getGroupName(); return name != null && name.equals(namedGroupRef2.getGroupName()); }