private static void moveScrollRemoveSelection(@NotNull Editor editor, int offset) {
    ThreadingAssertions.assertEventDispatchThread();
    editor.getCaretModel().moveToOffset(offset);
    editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
    editor.getSelectionModel().removeSelection();
  }
private static void moveScrollRemoveSelection(@NotNull Editor editor, int offset)