private void highlightMatchGroup(HighlightManager highlightManager, List<RegExpMatch> matches, int group) {
    final Editor editor = mySampleText.getEditor();
    if (editor == null) {
      return;
    }
    for (RegExpMatch match : matches) {
      final int start = match.start(group);
      final int end = match.end(group);
      if (start < 0 || end < 0) continue;
      if (group != 0 || start != 0 || end != mySampleText.getText().length()) {
        highlightManager.addRangeHighlight(editor, start, end, RegExpHighlighter.MATCHED_GROUPS, true, mySampleHighlights);
      }
    }
  }
private void highlightMatchGroup(HighlightManager highlightManager, List<RegExpMatch> matches, int group)