@Override
      public void focusGained(FocusEvent e) {
        final Editor editor = myRegExp.getEditor();
        if (editor == null) return;
        final int offset = editor.getCaretModel().getOffset();
        highlightRegExpGroup(offset, regExpFile);
      }
@Override
      public void focusGained(FocusEvent e)