private void scrollToEnd(@NotNull Editor editor) {
    ThreadingAssertions.assertEventDispatchThread();
    EditorUtil.scrollToTheEnd(editor, true);
    myCancelStickToEnd = false;
  }
private void scrollToEnd(@NotNull Editor editor)