@Override
          public void caretPositionChanged(@NotNull CaretEvent event) {
            final int offset = editor.logicalPositionToOffset(event.getNewPosition());
            highlightRegExpGroup(offset, regExpFile);
          }
@Override
          public void caretPositionChanged(@NotNull CaretEvent event)