@SuppressWarnings("MethodMayBeStatic")
  @Nullable
  protected final TaskState getStateById(int id) {
    return switch (id) {
      case 1 -> TaskState.OPEN;
      case 3 -> TaskState.IN_PROGRESS;
      case 4 -> TaskState.REOPENED;
      case 5,  // resolved
           6 -> // closed
        TaskState.RESOLVED;
      default -> null;
    };
  }
@SuppressWarnings("MethodMayBeStatic")
  @Nullable
  protected final TaskState getStateById(int id)