presto-main/src/main/java/io/prestosql/execution/scheduler/UniformNodeSelector.java/UniformNodeSelector/isSplitLocal
class UniformNodeSelector:    private static boolean isSplitLocal(List<HostAddress> splitAddresses, HostAddress nodeAddress, SetMultimap<InetAddress, InternalNode> nodesByHost)
    {
        for (HostAddress address : splitAddresses) {
            if (nodeAddress.equals(address)) {
                return true;
            }
            InetAddress inetAddress;
            try {
                inetAddress = address.toInetAddress();
            }
            catch (UnknownHostException e) {
                continue;
            }
            if (!address.hasPort()) {
                Set<InternalNode> localNodes = nodesByHost.get(inetAddress);
                return localNodes.stream()
                        .anyMatch(node -> node.getHostAndPort().equals(nodeAddress));
            }
        }
        return false;
    }