class FileUtils {

    public static int getPercentOfDeleted(
            @NotNull FileConfiguration configuration,
            @NotNull IndexService indexService,
            @NotNull Partition partition
    ) {
        long deleted = min(indexService.getSizeOfDeleted(partition), configuration.getMaxFileSize());
        return (int) round((double) deleted / configuration.getMaxFileSize() * 100);
    }

    private  FileUtils();

}