public static void notifyMaxCarets(@NotNull Editor editor) {
    Long lastTimeStamp = editor.getUserData(EditorNotification.LAST_MAX_CARETS_NOTIFY_TIMESTAMP);
    long currentTimeStamp = System.currentTimeMillis();
    if (lastTimeStamp != null && (currentTimeStamp - lastTimeStamp) < EditorNotification.MAX_CARETS_NOTIFY_INTERVAL_MS) return;
    editor.putUserData(EditorNotification.LAST_MAX_CARETS_NOTIFY_TIMESTAMP, currentTimeStamp);
    NotificationGroupManager.getInstance().getNotificationGroup("too.many.carets")
      .createNotification(
        EditorBundle.message("editor.max.carets.hint", editor.getCaretModel().getMaxCaretCount()),
        NotificationType.INFORMATION)
      .notify(editor.getProject());
  }
public static void notifyMaxCarets(@NotNull Editor editor)