public static void deleteSelectedTextForAllCarets(@NotNull Editor editor) {
    editor.getCaretModel().runForEachCaret(__ -> deleteSelectedText(editor));
  }
public static void deleteSelectedTextForAllCarets(@NotNull Editor editor)