private static boolean areOptionsEquivalent(RegExpOptions options1, RegExpOptions options2) {
    return options1 == null ? options2 == null : options2 != null && StringUtil.containsAnyChar(options1.getText(), options2.getText());
  }
private static boolean areOptionsEquivalent(RegExpOptions options1, RegExpOptions options2)