@SuppressWarnings("deprecation")
  public static @NotNull ModalityState any() {
    return ApplicationManager.getApplication().getAnyModalityState();
  }
@SuppressWarnings("deprecation")
  public static @NotNull ModalityState any()