presto-hive/src/main/java/io/prestosql/plugin/hive/util/InternalHiveSplitFactory.java/InternalHiveSplitFactory/allBlocksHaveAddress
class InternalHiveSplitFactory:    private static boolean allBlocksHaveAddress(Collection<InternalHiveBlock> blocks)
    {
        return blocks.stream()
                .map(InternalHiveBlock::getAddresses)
                .noneMatch(List::isEmpty);
    }