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