presto-parser/src/main/java/io/prestosql/sql/tree/QualifiedName.java/QualifiedName/hasSuffix
class QualifiedName:    public boolean hasSuffix(QualifiedName suffix)
    {
        if (parts.size() < suffix.getParts().size()) {
            return false;
        }

        int start = parts.size() - suffix.getParts().size();

        return parts.subList(start, parts.size()).equals(suffix.getParts());
    }