public static void cut(@NotNull Editor editor, int start, int end) {
    copyToKillRing(editor, start, end, true);
    editor.getDocument().deleteString(start, end);
  }
public static void cut(@NotNull Editor editor, int start, int end)