code: public static Alert getAlert(String title, String header, String content, AlertType alertType, Modality modality,
                                   Window window, StageStyle style) {
          Alert alert = new Alert(alertType);
  
          alert.setTitle(title);
          alert.setHeaderText(header);
          alert.setContentText(content);
  
          alert.initModality(modality);
          alert.initOwner(window);
          alert.initStyle(style);
  
          return alert;
      }
docs: 获取{@link Alert}对象
  
  @param title 标题
  @param header 信息头
  @param content 内容
  @param alertType {@link AlertType}
  @param modality {@link Modality}
  @param window {@link Window}
  @param style {@link StageStyle}
  
  @return {@link Alert}