private static @Nullable Class<?> getRepositoryType(@NotNull TaskRepository repository) {
    TaskRepositoryType<?> repositoryType = repository.getRepositoryType();
    return repositoryType != null ? repositoryType.getClass() : null;
  }
private static @Nullable Class<?> getRepositoryType(@NotNull TaskRepository repository)