private static boolean areClassesEquivalent(RegExpClass aClass1, RegExpClass aClass2) {
    return aClass1.isNegated() == aClass2.isNegated() && areElementArraysEquivalent(aClass1.getElements(), aClass2.getElements(), true);
  }
private static boolean areClassesEquivalent(RegExpClass aClass1, RegExpClass aClass2)