@Nullable
  @Override
  public Task findTask(@NotNull String id) throws Exception {
    Task[] tasks = getCases(id);
    return switch (tasks.length) {
      case 0 -> null;
      case 1 -> tasks[0];
      default -> {
        LOG.warn("Expected unique case for case id: " + id + ", got " + tasks.length + " instead. Using the first one.");
        yield tasks[0];
      }
    };
  }
@Nullable
  @Override
  public Task findTask(@NotNull String id)