public static void moveCaretToLineEnd(@NotNull Editor editor, boolean isWithSelection) {
    moveCaretToLineEnd(editor, isWithSelection, true);
  }
public static void moveCaretToLineEnd(@NotNull Editor editor, boolean isWithSelection)