public byte[] downloadRaw(Dependency dependency) throws DependencyDownloadException {
        try {
            URLConnection connection = openConnection(dependency);
            try (InputStream in = connection.getInputStream()) {
                byte[] bytes = ByteStreams.toByteArray(in);
                if (bytes.length == 0) {
                    throw new DependencyDownloadException("Empty stream");
                }
                return bytes;
            }
        } catch (Exception e) {
            throw new DependencyDownloadException(e);
        }
    }
Downloads the raw bytes of the {@code dependency}.

@param dependency the dependency to download
@return the downloaded bytes
@throws DependencyDownloadException if unable to download
common/src/main/java/me/lucko/luckperms/common/dependencies/DependencyRepository.java