private static boolean areCharRangesEquivalent(RegExpCharRange charRange1, RegExpCharRange charRange2) {
    return areCharsEquivalent(charRange1.getFrom(), charRange2.getFrom()) && areCharsEquivalent(charRange1.getTo(), charRange2.getTo());
  }
private static boolean areCharRangesEquivalent(RegExpCharRange charRange1, RegExpCharRange charRange2)