public static void moveCaret(@Nullable final Editor editor, int line) {
    if (editor == null) return;
    editor.getSelectionModel().removeSelection();
    editor.getCaretModel().removeSecondaryCarets();
    editor.getCaretModel().moveToLogicalPosition(new LogicalPosition(line, 0));
  }
public static void moveCaret(@Nullable final Editor editor, int line)