private static @Nullable Change.Type getType(@NotNull HgFileStatusEnum status) {
    return switch (status) {
      case ADDED -> Change.Type.NEW;
      case MODIFIED -> Change.Type.MODIFICATION;
      case DELETED -> Change.Type.DELETED;
      case COPY -> Change.Type.MOVED;
      case UNVERSIONED, MISSING, UNMODIFIED, IGNORED -> null;
    };
  }
private static @Nullable Change.Type getType(@NotNull HgFileStatusEnum status)