@Override
  public <T extends Notification> T @NotNull [] getNotificationsOfType(@NotNull Class<T> klass, @Nullable Project project) {
    List<T> result = new ArrayList<>();
    if (project == null || !project.isDefault() && !project.isDisposed()) {
      for (Notification notification : ActionCenter.getNotifications(project)) {
        if (klass.isInstance(notification)) {
          @SuppressWarnings("unchecked") T t = (T)notification;
          result.add(t);
        }
      }
    }
    return ArrayUtil.toObjectArray(result, klass);
  }
@Override
  public <T extends Notification> T @NotNull [] getNotificationsOfType(@NotNull Class<T> klass, @Nullable Project project)